码迷,mamicode.com
首页 >  
搜索关键字:combinations    ( 963个结果
Leetcode#17 Letter Combinations of a Phone Number
原题地址简单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
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 C unlimited numb...
分类:其他好文   时间:2015-01-30 09:15:07    阅读次数:174
21. Generate Parentheses Leetcode Python
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
[LeetCode]39.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 C unli...
分类:其他好文   时间:2015-01-27 18:23:32    阅读次数:194
[LeetCode]40.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 once in t...
分类:其他好文   时间:2015-01-27 18:21:00    阅读次数:180
LeetCode | #22 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-01-25 21:05:00    阅读次数:171
[LeetCode]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.255.111.35"]. (Order ...
分类:其他好文   时间:2015-01-25 18:19:01    阅读次数:219
LeetCode | #17 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 telephone buttons) is given below. Input...
分类:其他好文   时间:2015-01-24 22:48:17    阅读次数:161
[LeetCode]22.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-01-23 23:03:25    阅读次数:214
[LeetCode]17.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 telephone buttons) is given below. Inpu...
分类:其他好文   时间:2015-01-22 21:53:23    阅读次数:259
963条   上一页 1 ... 67 68 69 70 71 ... 97 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!