队列Queue val emp = scala.collection.immutable.Queue[Int](); val has1 = emp.enqueue(1) val has123=has1.enqueue(List(2,3)) println(has1) ...
分类:
其他好文 时间:
2014-11-14 22:25:25
阅读次数:
178
Given a collection of intervals, merge all overlapping intervals. For example,Given [1,3],[2,6],[8,10],[15,18],return [1,6],[8,10],[15,18].Solution: 1...
分类:
其他好文 时间:
2014-11-14 12:14:16
阅读次数:
226
以List为例,具体错误信息如下:
未处理 System.NullReferenceException
Message=未将对象引用设置到对象的实例。
Source=TestSet
StackTrace:
在 TestSet.Form1.button1_Click(Object sender, EventArgs e) 位置 E:\WorkSpace\VS2010\Te...
分类:
其他好文 时间:
2014-11-14 00:22:28
阅读次数:
218
基于mongoDB的capped collection的性能优化...
分类:
移动开发 时间:
2014-11-13 19:02:14
阅读次数:
155
如何控制XML文档的样式1中研究了if过滤,其实xsl中还可以实现类似switch的效果,即看下面的列子: 1 2 3 4 5 6 Team People Collection 7 8 ...
分类:
其他好文 时间:
2014-11-13 18:04:20
阅读次数:
167
package com.tongrong.utils;import java.util.Collection;import java.util.Map;import java.util.regex.Matcher;import java.util.regex.Pattern;import org.a...
分类:
编程语言 时间:
2014-11-13 16:19:34
阅读次数:
271
什么是泛型?泛型(Generic type 或者 generics)是对Java语言的类型系统的一种扩展,以支持创建可以按类型进行参数化的类。可以把类型参数看作是使用参数化类型时指定的类型的一个占位符,就像方法的形式参数是运行时传递的值的占位符一样。可以在集合框架(Collection framew...
分类:
编程语言 时间:
2014-11-13 15:59:41
阅读次数:
222
Given a collection of integers that might contain duplicates,S, return all possible subsets.Note:Elements in a subset must be in non-descending order....
分类:
其他好文 时间:
2014-11-13 09:24:37
阅读次数:
148
Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,...
分类:
其他好文 时间:
2014-11-13 07:01:33
阅读次数:
113
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following unique perm...
分类:
其他好文 时间:
2014-11-13 06:59:23
阅读次数:
166