class Solution {private: vector res; string temp;public: void getRes(string digits,int len,map num_map,int index) { if(index>=len) ...
分类:
其他好文 时间:
2015-06-02 20:08:52
阅读次数:
105
Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:
其他好文 时间:
2015-06-02 00:02:28
阅读次数:
332
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-05-29 17:28:45
阅读次数:
92
Find all possible combinations ofknumbers that add up to a numbern, given that only numbers from 1 to 9 can be used and each combination should be a u...
分类:
其他好文 时间:
2015-05-29 17:25:09
阅读次数:
112
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-05-29 15:39:37
阅读次数:
121
一道非常经典的dfspublic class Solution { String[] keybd ={"","","abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"}; // http://www.cnblogs.com/springfor...
分类:
其他好文 时间:
2015-05-29 13:56:17
阅读次数:
129
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 ...
分类:
其他好文 时间:
2015-05-29 11:49:26
阅读次数:
82
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-05-29 11:32:26
阅读次数:
79
问题
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 th...
分类:
其他好文 时间:
2015-05-29 10:08:13
阅读次数:
115
题目:Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated ...
分类:
其他好文 时间:
2015-05-28 15:44:29
阅读次数:
152