码迷,mamicode.com
首页 >  
搜索关键字:combinations    ( 963个结果
[*]Combination
题目: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,...
分类:其他好文   时间:2015-07-07 18:42:12    阅读次数:101
[leedcode 17] Letter Combinations of a Phone Number
public class Solution { public List res; public StringBuilder seq; public List letterCombinations(String digits) { //本题类似于全排列的变形,全排列的每...
分类:其他好文   时间:2015-07-07 14:28:47    阅读次数:123
LeetCode22: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-07-07 13:00:44    阅读次数:105
leetCode(31):Combination Sum III
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 a unique set of numbers. Ensure that numbers wi...
分类:其他好文   时间:2015-07-07 11:07:18    阅读次数:94
leetCode 22.Generate Parentheses (生成括号) 解题思路和方法
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-07-07 09:30:46    阅读次数:106
LeetCode39: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 number of t...
分类:其他好文   时间:2015-07-06 21:45:12    阅读次数:107
#leetcode#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:Digit st...
分类:其他好文   时间:2015-07-04 14:02:10    阅读次数:282
Letter Combinations of a Phone Number
1. Question给一个数字字符串,按照电话上各个数字对应的字母,返回该字符串代表的所有可能的字母组合。Given a digit string, return all possible letter combinations that the number could represent.A ...
分类:其他好文   时间:2015-07-03 23:23:10    阅读次数:121
Generate Parentheses
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-07-03 09:22:17    阅读次数:142
LeetCode77: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-06-23 23:15:54    阅读次数:132
963条   上一页 1 ... 48 49 50 51 52 ... 97 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!