22. Generate Parentheses Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n ...
分类:
Web程序 时间:
2019-02-16 13:33:56
阅读次数:
207
"152. Combinations" / "77. Combinations" 本题难度: Medium Topic: Search & Recursion Description Given two integers n and k, return all possible combinatio ...
分类:
其他好文 时间:
2019-02-15 01:11:29
阅读次数:
181
Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where the ...
分类:
其他好文 时间:
2019-02-07 09:12:45
阅读次数:
175
Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numb ...
分类:
其他好文 时间:
2019-02-03 23:35:36
阅读次数:
165
Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where the ...
分类:
其他好文 时间:
2019-02-03 18:11:43
阅读次数:
150
算法描述: Given a string containing only digits, restore it by returning all possible valid IP address combinations. Example: 解题思路:题目要求所有可能的结果,首先想到回溯法。重点有 ...
分类:
其他好文 时间:
2019-02-02 14:17:56
阅读次数:
209
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 ...
分类:
其他好文 时间:
2019-02-01 23:27:38
阅读次数:
269
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: 1 ...
分类:
其他好文 时间:
2019-01-29 18:13:26
阅读次数:
116
Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. A mapping of digit to le ...
分类:
其他好文 时间:
2019-01-26 12:30:21
阅读次数:
104
呜呜呜 递归好不想写qwq 17. Letter Combinations of a Phone Number 题意:在九宫格上按数字,输出所有可能的字母组合 思路:递归回溯求解 递归保存的是每层的状态,因此每层的 str 不应该改,而是更改str和idx后进入到下一层 class Solution ...
分类:
其他好文 时间:
2019-01-25 23:21:26
阅读次数:
226