题目链接:subsets
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
*
Given a set of distinct integers, S, return all possible subsets.
Note:
Elements in a su...
分类:
其他好文 时间:
2015-03-28 08:50:46
阅读次数:
100
Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution is:[ [2,4], [3,4], [2,3],...
分类:
其他好文 时间:
2015-03-22 00:28:37
阅读次数:
130
Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",return["255.2...
分类:
其他好文 时间:
2015-03-20 01:15:53
阅读次数:
186
https://leetcode.com/problems/subsets-ii/Given a collection of integers that might contain duplicates,S, return all possible subsets.Note:Elements in ...
分类:
其他好文 时间:
2015-03-19 23:26:45
阅读次数:
149
https://leetcode.com/problems/subsets/Given a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descend...
分类:
其他好文 时间:
2015-03-19 21:53:20
阅读次数:
167
https://leetcode.com/problems/combinations/Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk=...
分类:
其他好文 时间:
2015-03-19 14:36:28
阅读次数:
115
problem:
Given a digit string, return all possible letter combinations that the number could represent.
A mapping of digit to letters (just like on the telephone buttons) is given belo...
分类:
其他好文 时间:
2015-03-19 11:30:42
阅读次数:
138
CombinationsGiven two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution is:[ [2,4], [3.....
分类:
其他好文 时间:
2015-03-17 19:45:01
阅读次数:
124
Leetcode 78 SubsetGiven a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The soluti...
分类:
其他好文 时间:
2015-03-17 11:47:34
阅读次数:
165
标题:Subsets II通过率:27.5难度:中等Given a collection of integers that might contain duplicates,S, return all possible subsets.Note:Elements in a subset must b...
分类:
其他好文 时间:
2015-03-16 21:04:46
阅读次数:
116