码迷,mamicode.com
首页 >  
搜索关键字:list    ( 54897个结果
[LeetCode][Python]Flatten Nested List Iterator
Flatten Nested List Iterator Flatten Nested List Iterator Given a nested list of integers, implement an iterator to flatten it. Each element is either ...
分类:编程语言   时间:2016-05-13 17:16:42    阅读次数:283
java集合框架
Java集合框架 Collection接口API Iterator迭代器接口 Collection子接口之一:Set接口 HashSet  LinkedHashSet  TreeSet Collection子接口之二: List接口 ArrayList LinkedList Vector Map接口 HashMap TreeMap Hashtable Collections工具...
分类:编程语言   时间:2016-05-13 15:20:09    阅读次数:294
【华为OJ】【047-百钱买百鸡问题】
【华为OJ】【算法总篇章】【华为OJ】【047-百钱买百鸡问题】【工程下载】题目描述公元前五世纪,我国古代数学家张丘建在《算经》一书中提出了“百鸡问题”:鸡翁一值钱五,鸡母一值钱三,鸡雏三值钱一。 百钱买百鸡,问鸡翁、鸡母、鸡雏各几何? 详细描述: 接口说明 原型: int getResult() 输入描述无 输出描述list 鸡翁、鸡母、鸡雏组合的列表 输入例子1 输出例子0 25 75 4 1...
分类:其他好文   时间:2016-05-13 14:56:01    阅读次数:166
ArrayList中的modCount与ConcurrentModificationException
在看ArrayList源码时,看到了一个字段modCount。在add、remove、clear等方法中都有modCount++的操作。不明白什么意思。点进去看了看该字段的解释,总算明白了。modCount是在AbstractList抽象类中定义的。该字段的解释如下所示。 /** * The number of times this list has been structur...
分类:其他好文   时间:2016-05-13 14:44:12    阅读次数:170
[leetcode] 206.Palindrome Linked List
Given a singly linked list, determine if it is a palindrome. Follow up:Could you do it in O(n) time and O(1) space? Subscribe to see which companies a ...
分类:其他好文   时间:2016-05-13 14:24:03    阅读次数:181
leetcode@ [336] Palindrome Pairs (HashMap)
https://leetcode.com/problems/palindrome-pairs/ Given a list of unique words. Find all pairs of distinct indices (i, j) in the given list, so that the ...
分类:其他好文   时间:2016-05-13 14:12:43    阅读次数:232
English-Speaking Cultures Film List
Anouncement: I repost this list to just make it convenient for everyone who would like do this Final Project: Repost from Mr. Seth Here's the List: (E ...
分类:其他好文   时间:2016-05-13 14:05:14    阅读次数:230
kali更新源
打开/etc/apt/sources.list 删除所有,并粘贴以下代码 #中科大kali源 deb http://mirrors.ustc.edu.cn/kali sana main non-free contrib deb http://mirrors.ustc.edu.cn/kali-secu ...
分类:其他好文   时间:2016-05-13 14:04:31    阅读次数:169
Cloudsim 3.0在myclipse下的安装过程
(1)下载cloudsim 3.0: http://code.google.com/p/cloudsim/downloads/list (2)下载flanaga.jar包 下载地址:http://www.ee.ucl.ac.uk/~mflanaga/java/ 找到与JDK相应的jar包 (3)在M ...
分类:其他好文   时间:2016-05-13 14:04:31    阅读次数:170
JAVA 就六次作业 抽奖
代码如下 具体流程 创建一个LIST容器对象 使用DEAL 和 DRAW 方法 并调用了COLLECTION类中shuffle 最后在终端控制台输出 运行效果 ...
分类:编程语言   时间:2016-05-13 13:19:22    阅读次数:162
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!