类层次关系如下:Collection├List│├LinkedList│├ArrayList│└Vector│ └Stack└SetMap├Hashtable├HashMap└WeakHashMap下面来分别介绍Collection接口
Collection是最基本的集合接口,一个Collecti....
分类:
编程语言 时间:
2014-06-12 10:01:52
阅读次数:
290
闲来无事,翻了翻以前的代码,做点总结,菜鸟从这里起航,呵呵。一、List的foreach遍历
先上代码段[1]: 1 class Program 2 { 3 static void Main(string[] args) 4 { 5 ...
分类:
其他好文 时间:
2014-06-12 09:49:31
阅读次数:
195
Reverse Linked List IIReverse a linked list from
positionmton. Do it in-place and in one-pass.For example:Given
1->2->3->4->5->NULL, m= 2 andn= 4,retu...
分类:
其他好文 时间:
2014-06-12 07:03:54
阅读次数:
308
字典是无序的
数组是有序的。字典分为:可变字典和不可变字典不可变字典对象NSDictionary * dict = [[NSDictionary
alloc]initWithObjectsAndKeys:@"one",@"1",@"two",@"2",@"three",@"3",@"four",@"...
分类:
移动开发 时间:
2014-06-12 06:25:50
阅读次数:
324
Partition ListGiven a linked list and a valuex,
partition it such that all nodes less thanxcome before nodes greater than or
equal tox.You should pres...
分类:
其他好文 时间:
2014-06-12 06:18:55
阅读次数:
562