码迷,mamicode.com
首页 >  
搜索关键字:combinations    ( 963个结果
Restore IP Address
题目:Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",return["25...
分类:其他好文   时间:2015-04-09 13:30:30    阅读次数:169
LeetCode --- 93. Restore IP Addresses
题目链接: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", "25...
分类:其他好文   时间:2015-04-09 11:57:09    阅读次数:191
LeetCode Combinations
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. For example, If n = 4 and k = 2, a solution is: [ [2,4], [3,4], [2,3], [1,2], [1,3], [1,4], ]...
分类:其他好文   时间:2015-04-07 17:42:16    阅读次数:94
Generate Parentheses--LeetCode
题目: 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-04-07 11:58:50    阅读次数:116
Letter Combinations of a Phone Number——LeetCode
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:其他好文   时间:2015-04-06 15:30:40    阅读次数:107
Combination Sum_DFS
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-04-04 14:57:18    阅读次数:106
[LeetCode] Combination Sum 回溯
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-04-04 06:38:53    阅读次数:143
CC9.6 (LeetCode-Generate Parentheses ) Implement analgorithm to print all valid combinations of n-pairs of parenthese.
Implement analgorithm to print all valid combinations of n-pairs of parenthese.Analysis:-只要待加入的有左括号就可以加入左括号。最初可以加入的左括号为n个。-只要已加入的左括号比右括号多就可以加入右括号。最初可以...
分类:其他好文   时间:2015-04-03 14:46:24    阅读次数:115
Leetcode22. Generate Parentheses
Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:其他好文   时间:2015-04-03 12:51:34    阅读次数:116
[LeetCode] Letter Combinations of a Phone Number
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 b...
分类:其他好文   时间:2015-04-03 01:38:10    阅读次数:160
963条   上一页 1 ... 59 60 61 62 63 ... 97 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!