5582: Box and Ball 题目描述 We have N boxes, numbered 1 through N. At first, box 1 contains one red ball, and each of the other boxes contains one white b ...
分类:
其他好文 时间:
2018-05-14 21:29:19
阅读次数:
181
As a cute girl, Kotori likes playing ``Hide and Seek'' with cats particularly. Under the influence of Kotori, many girls and cats are playing ``Hide a ...
分类:
其他好文 时间:
2018-05-13 21:09:01
阅读次数:
151
在写spring mvc小程序时遇到 At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that ...
分类:
编程语言 时间:
2018-05-13 15:37:37
阅读次数:
345
题目:和最大的子序列 难度:Medium 题目内容: Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and re ...
分类:
编程语言 时间:
2018-05-13 00:37:58
阅读次数:
311
目录: 一,给出散列函数的具体应用。 二,结合生日攻击、以及2004、2005年王晓云教授有关MD5安全性和2017年google公司SHA-1的安全性,说明散列函数的安全性以及目前安全散列函数的发展。问题2的回答可以结合下面给出的第一个链接。 三,结合md5算法中的选择前缀碰撞以及第二个链接中的h ...
分类:
其他好文 时间:
2018-05-12 15:13:37
阅读次数:
268
Microsoft Windows [版本 10.0.16299.431](c) 2017 Microsoft Corporation。保留所有权利。 C:\Users\zyong>pip installERROR: You must give at least one requirement to ...
分类:
编程语言 时间:
2018-05-12 02:58:12
阅读次数:
1346
传送门 题目 There is a square matrix n?×?n, consisting of non-negative integer numbers. You should find such a way on it that starts in the upper left cell ...
分类:
其他好文 时间:
2018-05-11 20:31:54
阅读次数:
193
LRU全称是Least Recently Used,即最近最久未使用的意思。 LRU算法的设计原则是:如果一个数据在最近一段时间没有被访问到,那么在将来它被访问的可能性也很小。也就是说,当限定的空间已存满数据时,应当把最久没有被访问到的数据淘汰。 实现LRU 1.用一个数组来存储数据,给每一个数据项 ...
分类:
编程语言 时间:
2018-05-09 14:54:21
阅读次数:
286
注解是众多引入到Java SE5中的重要的语言变化之一。 Java1.6内置了三种标准注解和四种元注解(元注解专职负责注解其他注解)。 大多数时候我们都是定义自己的注解,并编写自己的处理器来处理它们。 @Target(ElementType.METHOD) package java.lang.ann ...
分类:
编程语言 时间:
2018-05-07 19:50:25
阅读次数:
270
1. 不使用缓存 使用同一个session执行查询 对同个对象的第二次查询只是返回第一册查询结果 而不是重新使用SQL语句对数据库进行查询 2. 一级缓存(Session缓存) 介绍 1. 通过Session从数据库查询实体会把实体在内存中存储起来,下一次查询同一实体不再从数据库获取,而是从内存中获 ...
分类:
Web程序 时间:
2018-05-06 20:08:16
阅读次数:
191