Java中的HashCode(1)之hash算法基本原理2012-11-16 14:58:59
我来说两句 作者:woshixuye 收藏 我要投稿一、为什么要有Hash算法Java中
的集合有两类,一类是List,一类是Set。List内的元素是有序的,元素可以重复。Set元素无序,但元素不可.....
分类:
编程语言 时间:
2014-06-11 09:21:59
阅读次数:
294
集合框架的工具类:collecttionsCollections 的方法全是静态的
List没有排序功能,所以java定义了Collections工具类。 比较器无法传给list,只能传给Set.但是集合工具类有此方法1.排序:
comparable: sort(List list) 根据元素的自然...
分类:
其他好文 时间:
2014-06-11 08:54:10
阅读次数:
218
distribute-list分发列表 (2013-07-07
10:46:09)转载▼标签:distribute-list分发列表分类:Routing一、工具概述distribute-list分发列表是用于控制路由更新的一个工具,只能过滤路由信息,不能过滤LSA。如上图,R1、R2、R3运行RIP...
分类:
其他好文 时间:
2014-06-11 07:52:09
阅读次数:
323
Given a singly linked list where elements are
sorted in ascending order, convert it to a height balanced BST.public class
Solution { /** Convert th...
分类:
其他好文 时间:
2014-06-10 00:22:44
阅读次数:
259
链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=151For each list
of words, output a line with each word reversed without changing the or...
分类:
其他好文 时间:
2014-06-10 00:14:19
阅读次数:
300
CVPR 2013 关于图像/场景分类(classification)的文章paper
list八14by小军这个搜罗了cvpr2013有关于classification的相关文章,自己得mark下来好好看看,好快啊,都快研二了,但是还是一点头绪都没!好好看看,争取每篇文章写点思想。Oral:1、R...
分类:
其他好文 时间:
2014-06-09 23:52:33
阅读次数:
1136
Python一维数组初始化:>>> list=[]>>>
type(list)>>> list[]Python二维数组初始化:>>> lists = [[]] *
3>>> lists[[], [], []]>>> lists[0].append(3)>>>
lists[[3], [3], [3]]...
分类:
编程语言 时间:
2014-06-07 23:49:56
阅读次数:
563
集合有序否允许元素重复否Collection否是List是是SetAbstractSet否否HashSetTreeSet是(用二叉树排序)MapAbstractMap否使用key-value来映射和存储数据,Key必须惟一,value可以重复HashMapTreeMap是(用二叉树排序)目的:用数组...
分类:
其他好文 时间:
2014-06-07 23:42:39
阅读次数:
312
题目:Given a linked list and a valuex, partition it
such that all nodes less thanxcome before nodes greater than or equal tox.You
should preserve the or...
分类:
其他好文 时间:
2014-06-07 20:35:55
阅读次数:
236
Given a linked list, remove thenthnode from the
end of list and return its head.For example, Given linked list:
1->2->3->4->5, and n = 2. After re...
分类:
其他好文 时间:
2014-06-07 16:54:26
阅读次数:
221