#Region Project Attributes #ApplicationLabel: SwitchingWindow #VersionCode: 20140615 #VersionName: 'SupportedOrientations possible values: unspecif...
分类:
其他好文 时间:
2014-06-19 07:55:52
阅读次数:
281
#Region Project Attributes #ApplicationLabel: MyFirstProgram #VersionCode: 1 #VersionName: 'SupportedOrientations possible values: unspecified, lan...
分类:
其他好文 时间:
2014-06-18 13:46:13
阅读次数:
254
Given a string containing only digits, restore it by returning all possible valid IP address combinations.
For example:
Given "25525511135",
return ["255.255.11.135", "255.255.111.35"].
(Order do...
分类:
其他好文 时间:
2014-06-16 19:24:42
阅读次数:
248
题目
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.
If such arrangement is not possible, it must rearrange it as the low...
分类:
其他好文 时间:
2014-06-16 18:48:33
阅读次数:
170
There is a famous railway station in PopPush City. Country there is incredibly hilly. The station was built in last century. Unfortunately, funds were extremely limited that time. It was possible to e...
分类:
其他好文 时间:
2014-06-16 11:17:45
阅读次数:
162
题目
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.
For example,
If n = 4 and k = 2, a solution is:
[
[2,4],
[3,4],
[2,3],
[1,2],
[1,3],...
分类:
其他好文 时间:
2014-06-15 14:10:54
阅读次数:
239
题目
Given a collection of integers that might contain duplicates, S, return all possible subsets.
原题链接(点我)
解题思路
这个题很subsets这个题一样,不过这里允许给出的集合中含有重复元素,对于这个条件之需要加一个判断条件就可以了,其余代码和Subsets都一样。
代码实现.......
分类:
其他好文 时间:
2014-06-15 08:28:53
阅读次数:
166
Subsets Description:Given a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solu...
分类:
其他好文 时间:
2014-06-14 20:14:56
阅读次数:
267
题目
Given a set of distinct integers, S, return all possible subsets.
原题链接(点我)
解题思路
子集合问题。给一个集合 ,求出其所有的子集合。这个题也是个组合问题--老思路:递归加循环。
代码实现......
分类:
其他好文 时间:
2014-06-13 21:28:42
阅读次数:
252
The most strait forward approach is calculating
all the possible areas and keep the max one as the result. This approach needs
O(n*n) time complexity,...
分类:
其他好文 时间:
2014-06-10 16:11:31
阅读次数:
184