https://oj.leetcode.com/problems/subsets-ii/http://blog.csdn.net/linhuanmars/article/details/24613193publicclassSolution{
publicList<List<Integer>>subsetsWithDup(int[]num){
Arrays.sort(num);
Set<List<Integer>>results=newHashSet<..
分类:
其他好文 时间:
2015-01-05 07:13:53
阅读次数:
190
https://oj.leetcode.com/problems/gray-code/publicclassSolution{
publicList<Integer>grayCode(intn)
{
//规律:
//n=0:
//0
//
//n=1:
//0
//1
//
//n=2:
//00
//01
//11
//10
//
//n=3
//000
//001
//011
//010
//110
//111
//101
//100
//
//设n-1结果集为s
//正序..
分类:
其他好文 时间:
2015-01-05 07:12:52
阅读次数:
150
https://oj.leetcode.com/problems/subsets/http://blog.csdn.net/linhuanmars/article/details/24286377publicclassSolution{
publicList<List<Integer>>subsets(int[]S){
Arrays.sort(S);
List<List<Integer>>results=newArrayList<>();
hel..
分类:
其他好文 时间:
2015-01-04 19:35:38
阅读次数:
146
https://oj.leetcode.com/problems/combinations/http://blog.csdn.net/linhuanmars/article/details/21260217publicclassSolution{
publicList<List<Integer>>combine(intn,intk)
{
List<List<Integer>>results=newArrayList<>();
help(n,k,0,n..
分类:
其他好文 时间:
2015-01-04 19:34:42
阅读次数:
125
https://oj.leetcode.com/problems/subsets/http://blog.csdn.net/linhuanmars/article/details/24286377publicclassSolution{
publicList<List<Integer>>subsets(int[]S){
Arrays.sort(S);
List<List<Integer>>results=newArrayList<>();
hel..
分类:
其他好文 时间:
2015-01-04 19:34:20
阅读次数:
306
--- Storage接口 无论是sessionStorage还是localStorage 属性/方法 返回值 描述 ------------------------------------------------------- length integer 包含对象数目,只读 k...
分类:
Web程序 时间:
2015-01-04 14:50:38
阅读次数:
157
自我总结,有什么不对或不到位的地方,请指出,感激不尽!目的:熟练掌握java中null值出现的情况,避免NullPointerException代码环境准备:需要引入junit;将代码package部分改成自己的package名。然后即可单元测试。需要理解的概念:包装类:例如:Integer,Lon...
分类:
编程语言 时间:
2015-01-04 13:20:27
阅读次数:
191
Evaluate the value of an arithmetic expression in Reverse Polish Notation.
Valid operators are +, -, *, /.
Each operand may be an integer or another expression.
Some examples:
["2", "1", ...
分类:
其他好文 时间:
2015-01-04 10:10:36
阅读次数:
167
题目描述
We all understand that an integer set is a collection of distinct integers. Now the question is: given an integer set, can you find all its addtive equations? To explain what an addi...
分类:
其他好文 时间:
2015-01-04 06:29:52
阅读次数:
229
First Missing PositiveGiven an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Yo...
分类:
其他好文 时间:
2015-01-03 23:39:20
阅读次数:
166