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/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
https://oj.leetcode.com/problems/permutations-ii/http://blog.csdn.net/linhuanmars/article/details/21570835publicclassSolution{
publicList<List<Integer>>permuteUnique(int[]num)
{
//SolutionA:
//returnpermuteUnique_Swap(num);
//SolutionB:
returnp..
分类:
其他好文 时间:
2015-01-03 13:21:53
阅读次数:
143
https://oj.leetcode.com/problems/permutations/http://fisherlei.blogspot.com/2012/12/leetcode-permutations.htmlTODOseesubsetcombination,nextpublicclassSolution{
//Assumesallinputnumbersareunique
publicList<List<Integer>>permute(int[]num){
retur..
分类:
其他好文 时间:
2015-01-02 16:17:16
阅读次数:
126
https://oj.leetcode.com/problems/next-permutation/http://fisherlei.blogspot.com/2012/12/leetcode-next-permutation.htmlpublicclassSolution{
publicvoidnextPermutation(int[]num){
//SolutionB
nextPermutation_Math(num);
//SolutionA
//nextPermutation_AllPerms(..
分类:
其他好文 时间:
2015-01-02 16:11:11
阅读次数:
93
The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of the permutations in order,We get the following sequence (ie...
分类:
其他好文 时间:
2014-12-28 16:45:20
阅读次数:
177
原题地址:https://oj.leetcode.com/submissions/detail/5341904/题意:The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of ...
分类:
其他好文 时间:
2014-12-27 11:14:19
阅读次数:
182
问题描述:
The set [1,2,3,…,n] contains a total of
n! unique permutations.
By listing and labeling all of the permutations in order,
We get the following sequence (ie, for n = 3):
"123""132""213""...
分类:
其他好文 时间:
2014-12-22 22:50:08
阅读次数:
226
Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example, [1,1,2] have the following unique p...
分类:
其他好文 时间:
2014-12-22 19:27:07
阅读次数:
187
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...
分类:
其他好文 时间:
2014-12-22 19:20:39
阅读次数:
100