L216: Combination Sum III
Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be a unique set of number...
分类:
其他好文 时间:
2015-06-08 15:03:38
阅读次数:
116
Generate Parentheses
题目:
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:
“((()))”, “(()(...
分类:
其他好文 时间:
2015-06-06 23:33:17
阅读次数:
120
Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",return["255.2...
分类:
其他好文 时间:
2015-06-06 11:49:30
阅读次数:
86
典型的dfs题,建议在其他dfs之前做public class Solution { public ArrayList> combine(int n, int k) { ArrayList> res = new ArrayList>(); if(nn) return...
分类:
其他好文 时间:
2015-06-06 06:49:13
阅读次数:
106
L93: Restore IP Addresses
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.2...
分类:
其他好文 时间:
2015-06-05 22:43:06
阅读次数:
154
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-06-05 08:44:53
阅读次数:
125
Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated num...
分类:
其他好文 时间:
2015-06-05 07:38:18
阅读次数:
137
Letter Combinations of a Phone NumberTotal Accepted:40709Total Submissions:157759My SubmissionsQuestionSolutionGiven a digit string, return all possib...
分类:
编程语言 时间:
2015-06-05 06:09:34
阅读次数:
162
Letter Combinations of a Phone Number
题目:
Given a digit string, return all possible letter combinations that the number could represent.
A mapping of digit to letters (just like on the telepho...
分类:
其他好文 时间:
2015-06-03 11:56:06
阅读次数:
91
Consider all integer combinations of ab for 2 ≤ a ≤ 5 and 2 ≤ b ≤ 5:
22=4, 23=8, 24=16, 25=32
32=9, 33=27, 34=81, 35=243
42=16, 43=64, 44=256, 45=1024
52=25, 53=125, 54=625, 55=3125
If they a...
分类:
其他好文 时间:
2015-06-03 09:59:38
阅读次数:
123