Combination SumGiven a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thes...
分类:
其他好文 时间:
2014-12-27 13:54:43
阅读次数:
115
题目描述:
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-12-27 11:25:49
阅读次数:
126
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
For example, given n = 3, a solution set is:
"((()))", "(()())", "(())()", "()(())", "()()()"
...
分类:
其他好文 时间:
2014-12-25 20:40:36
阅读次数:
143
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 below.
Input:Digit string...
分类:
其他好文 时间:
2014-12-23 19:40:19
阅读次数:
192
问题描述:
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in
C where the candidate numbers sums to T.
Each number in C may only be used once in the c...
分类:
其他好文 时间:
2014-12-22 22:55:09
阅读次数:
218
问题描述:
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-12-22 22:48:41
阅读次数:
169
问题描述:
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in
C where the candidate numbers sums to T.
The same repeated number may be chosen from
C unlim...
分类:
其他好文 时间:
2014-12-22 21:19:26
阅读次数:
172
Letter Combinations of a Phone NumberGiven a digit string, return all possible letter combinations that the number could represent.A mapping of digit ...
分类:
其他好文 时间:
2014-12-20 15:23:53
阅读次数:
149
Generate ParenthesesGivennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a sol...
分类:
其他好文 时间:
2014-12-20 11:35:05
阅读次数:
136
【题目】
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"...
分类:
其他好文 时间:
2014-12-19 17:26:18
阅读次数:
117