题目:
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 th...
分类:
编程语言 时间:
2015-07-13 14:12:12
阅读次数:
172
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],
[1,4...
分类:
其他好文 时间:
2015-07-11 09:11:50
阅读次数:
107
题目:
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...
分类:
编程语言 时间:
2015-07-10 09:41:01
阅读次数:
181
Combination Sum II
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...
分类:
其他好文 时间:
2015-07-10 09:30:20
阅读次数:
237
Combination Sum
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...
分类:
其他好文 时间:
2015-07-10 09:29:59
阅读次数:
424
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”]. (O...
分类:
其他好文 时间:
2015-07-08 16:31:03
阅读次数:
117
遍历一遍就好class Solution: def __init__(self): self.mapping = {'2': 'abc', '3': 'def', '4': 'ghi', '5': 'jkl', '6': 'mno', '7': 'pqrs', '8': 'tuv...
分类:
其他好文 时间:
2015-07-08 09:21:03
阅读次数:
96
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 “2...
分类:
其他好文 时间:
2015-07-07 19:36:09
阅读次数:
152
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"]. (Order ...
分类:
其他好文 时间:
2015-07-07 19:30:43
阅读次数:
116
Combination Sum IIIFind all possible combinations ofknumbers that add up to a numbern, given that only numbers from 1 to 9 can be used and each combin...
分类:
其他好文 时间:
2015-07-07 19:12:51
阅读次数:
105