最新 最热

【DP】377. Combination Sum IV

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.

2019-06-14
2

Combination Sum 组合数求和-Leetcode

原题: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 num...

2018-03-19
2

Combination Sum II 组合数求和之2-Leetcode

原题: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...

2018-03-19
2

Leetcode 17 Letter Combinations of a Phone Number

Given a digit string, return all possible letter combinations that the number could represent. A ma

2018-01-12
2

Leetcode 22 Generate Parentheses 搜索与DP的纠结

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-01-12
2

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 ...

2018-01-12
2

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 numb...

2018-01-12
2

Leetcode 77 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],...

2018-01-12
2

[LeetCode] 39.Combination Sum

该文是关于LeetCode的一个题目,给出了一个候选集合和目标值,要求找到所有候选集合中元素的和等于目标值的集合。使用了回溯法,递归地搜索所有可能的组合。...

2018-01-03
2