码迷,mamicode.com
首页 >  
搜索关键字:combinations    ( 963个结果
[LeetCode][Java] 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 th...
分类:编程语言   时间:2015-07-13 14:12:12    阅读次数:172
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-07-11 09:11:50    阅读次数:107
[LeetCode][Java] 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-07-10 09:41:01    阅读次数:181
leetCode 40.Combination Sum II(组合总和II) 解题思路和方法
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...
分类:其他好文   时间:2015-07-10 09:30:20    阅读次数:237
leetCode 39.Combination Sum(组合总和) 解题思路和方法
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...
分类:其他好文   时间:2015-07-10 09:29:59    阅读次数:424
LeetCode93: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”]. (O...
分类:其他好文   时间:2015-07-08 16:31:03    阅读次数:117
017 Letter Combinations of a Phone Number
遍历一遍就好class Solution: def __init__(self): self.mapping = {'2': 'abc', '3': 'def', '4': 'ghi', '5': 'jkl', '6': 'mno', '7': 'pqrs', '8': 'tuv...
分类:其他好文   时间:2015-07-08 09:21:03    阅读次数:96
LeetCode17: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 string “2...
分类:其他好文   时间:2015-07-07 19:36:09    阅读次数:152
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-07-07 19:30:43    阅读次数:116
【LeetCode】216. Combination Sum III
Combination Sum IIIFind all possible combinations ofknumbers that add up to a numbern, given that only numbers from 1 to 9 can be used and each combin...
分类:其他好文   时间:2015-07-07 19:12:51    阅读次数:105
963条   上一页 1 ... 47 48 49 50 51 ... 97 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!