Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target. ...
分类:
其他好文 时间:
2018-12-03 22:58:00
阅读次数:
245
【题目】 Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate ...
分类:
其他好文 时间:
2018-12-01 00:13:02
阅读次数:
187
https://leetcode.com/problems/combinations/ Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. Example: 代码: 看 F ...
分类:
其他好文 时间:
2018-11-25 17:43:23
阅读次数:
142
Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numb ...
分类:
其他好文 时间:
2018-11-11 20:17:13
阅读次数:
117
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. Example: Input: n = 4, k = 2 Output: [ [2,4], [3,4], [2,3], ...
分类:
其他好文 时间:
2018-11-05 16:22:34
阅读次数:
130
【10】Regular Expression Matching 【17】Letter Combinations of a Phone Number 【22】Generate Parentheses 【37】Sudoku Solver 【39】Combination Sum 【40】Combinati ...
分类:
其他好文 时间:
2018-10-31 23:21:30
阅读次数:
168
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: [ ...
分类:
其他好文 时间:
2018-10-30 22:50:21
阅读次数:
179
题目 (https://leetcode cn.com/problems/letter combinations of a phone number/) 问题分析 刚拿到这道题的时候没什么思路,只能顺着逻辑想。每个数字对应着三个或者四个字母,也就是说每个位置我们会有三个或者四个选择。那么似乎我们可以 ...
分类:
其他好文 时间:
2018-10-20 00:53:33
阅读次数:
237
Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numb ...
分类:
其他好文 时间:
2018-10-15 23:09:27
阅读次数:
168