Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:
其他好文 时间:
2015-01-22 21:41:27
阅读次数:
136
Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example:Given "25525511135",return ["25...
分类:
其他好文 时间:
2015-01-22 15:21:34
阅读次数:
108
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-22 13:06:40
阅读次数:
206
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'17: Letter Combinations of a Phone Numberhttps://oj.leetcode.com/problems/letter-combinati...
分类:
编程语言 时间:
2015-01-22 00:04:47
阅读次数:
308
Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:
其他好文 时间:
2015-01-21 23:53:23
阅读次数:
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-01-21 19:52:01
阅读次数:
204
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-01-21 14:53:00
阅读次数:
110
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-01-20 23:39:07
阅读次数:
255
class Solution {public: vector result; vector letterCombinations(string digits) { string buf[] = { "abc","def","ghi","jkl","mno","pqrs","tuv...
分类:
其他好文 时间:
2015-01-17 11:08:41
阅读次数:
195
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 the combina...
分类:
其他好文 时间:
2015-01-16 16:47:18
阅读次数:
152