load factor 满载率 capacity 容量 threshold 临界值 控制treeify的临界值是8 ,当bin中链大于8时,则尝试treeify 1)如果此时表容量不足64,则会扩表。因此添加第9个元素时,由16->32 ,添加第10个元素时,由32->64 2)添加第11个元素时, ...
分类:
编程语言 时间:
2017-09-11 13:12:58
阅读次数:
206
We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wron ...
分类:
其他好文 时间:
2017-09-10 23:42:58
阅读次数:
235
一、if语句 格式: 注意if、elif以及else后面的(:)符号,我们通过它告诉Python下面跟着一个语句块。 二、while语句 enter an integer:22no,it is a little lower than thatenter an integer:24no,it is a ...
分类:
编程语言 时间:
2017-09-08 22:51:45
阅读次数:
159
项目启动时候报异常 1,异常信息 信息: Initializing Spring root WebApplicationContext2017-09-07 17:20:44 [org.springframework.web.context.ContextLoader.initWebApplicati ...
分类:
编程语言 时间:
2017-09-07 20:20:05
阅读次数:
470
Note: The lower one can cross other higher recetangle. Thus height[j] <= height[left/ right -/+ 1] ...
分类:
其他好文 时间:
2017-09-04 16:01:23
阅读次数:
152
Base class for activities that use the support library action bar features.You can add an ActionBar to your activity when running on API level 7 or hi ...
分类:
移动开发 时间:
2017-08-31 09:44:27
阅读次数:
303
思路: dp。 https://leetcode.com/problems/guess-number-higher-or-lower-ii/discuss/ 实现: ...
分类:
其他好文 时间:
2017-08-29 21:48:43
阅读次数:
115
是否使用了spring? spring版本较低?SPRING2.5版本可能不支持1.8的jdk,可能新版本有修复吧,总而言之就是1.8的JDK太高了,SPRING支持不了,修改方法也很简单,右键项目--》BUILD PATH--》Config Build Path--》Libraries-->Jre... ...
分类:
编程语言 时间:
2017-08-26 12:42:56
阅读次数:
434
Higher Math Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2291 Accepted Submission(s): 1262 #i ...
分类:
其他好文 时间:
2017-08-13 15:12:26
阅读次数:
129
高阶函数英文叫Higher-order function。。JavaScript的函数其实都指向某个变量。既然变量可以指向函数,函数的参数能接收变量,那么一个函数就可以接收另一个函数作为参数,这种函数就称之为高阶函数。 一个最简单的高阶函数: 当我们调用add(-5, 6, Math.abs)时,参 ...
分类:
编程语言 时间:
2017-08-09 12:53:49
阅读次数:
221