题目:
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],
...
分类:
编程语言 时间:
2015-01-10 11:20:00
阅读次数:
280
The problem:Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",r...
分类:
其他好文 时间:
2015-01-10 01:03:04
阅读次数:
318
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 st...
分类:
其他好文 时间:
2015-01-08 22:51:58
阅读次数:
270
Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:
其他好文 时间:
2015-01-08 17:34:58
阅读次数:
159
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2015-01-06 15:03:38
阅读次数:
157
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each number ...
分类:
其他好文 时间:
2015-01-05 23:22:28
阅读次数:
138
题目描述:
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 unl...
分类:
其他好文 时间:
2015-01-05 13:07:20
阅读次数:
113
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2015-01-05 00:30:36
阅读次数:
186
https://oj.leetcode.com/problems/combinations/http://blog.csdn.net/linhuanmars/article/details/21260217publicclassSolution{
publicList<List<Integer>>combine(intn,intk)
{
List<List<Integer>>results=newArrayList<>();
help(n,k,0,n..
分类:
其他好文 时间:
2015-01-04 19:34:42
阅读次数:
125
Restore IP AddressesGiven a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"255255...
分类:
其他好文 时间:
2015-01-03 11:49:35
阅读次数:
178