原题地址简单DFS题目代码: 1 vector res; 2 3 void dfs(string &digits, vector &i2s, string ans, int pos) { 4 if (pos == digits.length()) { 5 res.push_ba...
分类:
其他好文 时间:
2015-01-30 17:28:38
阅读次数:
161
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 unlimited numb...
分类:
其他好文 时间:
2015-01-30 09:15:07
阅读次数:
174
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-01-29 12:43:04
阅读次数:
157
【题目】
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 unli...
分类:
其他好文 时间:
2015-01-27 18:23:32
阅读次数:
194
【题目】
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 t...
分类:
其他好文 时间:
2015-01-27 18:21:00
阅读次数:
180
题目:
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-01-25 21:05:00
阅读次数:
171
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-01-25 18:19:01
阅读次数:
219
题目:
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-01-24 22:48:17
阅读次数:
161
【题目】
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-01-23 23:03:25
阅读次数:
214
【题目】
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.
Inpu...
分类:
其他好文 时间:
2015-01-22 21:53:23
阅读次数:
259