题目:
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,1,2],
and [3,2,1].
题意:
给...
分类:
编程语言 时间:
2015-07-14 13:46:05
阅读次数:
380
题目:
Given a collection of numbers that might contain duplicates, return all possible unique permutations.
For example,
[1,1,2] have the following unique permutations:
[1,1,2], [1,2,1],
and...
分类:
编程语言 时间:
2015-07-14 13:39:54
阅读次数:
180
Permutations II
Given a collection of numbers that might contain duplicates, return all possible unique permutations.
For example,
[1,1,2] have the following unique permutations:
[1,1,2], [1,...
分类:
其他好文 时间:
2015-07-13 14:06:17
阅读次数:
130
题目:
Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input c...
分类:
其他好文 时间:
2015-07-13 00:53:24
阅读次数:
100
Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ...
分类:
其他好文 时间:
2015-07-12 18:39:17
阅读次数:
104
题目:
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 lowest p...
分类:
编程语言 时间:
2015-07-12 11:20:56
阅读次数:
206
Given a collection of integers that might contain duplicates,nums, return all possible subsets.Note:Elements in a subset must be in non-descending ord...
分类:
其他好文 时间:
2015-07-12 11:10:36
阅读次数:
83
Given a set of distinct integers,nums, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not...
分类:
其他好文 时间:
2015-07-12 10:53:37
阅读次数:
130
This problem has a naive idea, which is to traverse all possible pairs of two points and see how many other points fall in the line determined by them...
分类:
其他好文 时间:
2015-07-11 22:44:06
阅读次数:
133
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following unique perm...
分类:
其他好文 时间:
2015-07-11 13:22:30
阅读次数:
122