码迷,mamicode.com
首页 >  
搜索关键字:combinations    ( 963个结果
22. Generate Parentheses(js)
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
[Lintcode]152. Combinations/[Leetcode]77. Combinations
"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
39. Combination Sum
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
19.2.3 [LeetCode 40] Combination Sum II
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
19.2.3 [LeetCode 39] Combination Sum
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
LeetCode-93-Restore IP Addresses
算法描述: Given a string containing only digits, restore it by returning all possible valid IP address combinations. Example: 解题思路:题目要求所有可能的结果,首先想到回溯法。重点有 ...
分类:其他好文   时间:2019-02-02 14:17:56    阅读次数:209
216. 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 ...
分类:其他好文   时间:2019-02-01 23:27:38    阅读次数:269
19.1.29 [LeetCode 22] 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: 1 ...
分类:其他好文   时间:2019-01-29 18:13:26    阅读次数:116
19.1.26 [LeetCode17] Letter Combinations of a Phone Number
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
LeetCode || 递归 / 回溯
呜呜呜 递归好不想写qwq 17. Letter Combinations of a Phone Number 题意:在九宫格上按数字,输出所有可能的字母组合 思路:递归回溯求解 递归保存的是每层的状态,因此每层的 str 不应该改,而是更改str和idx后进入到下一层 class Solution ...
分类:其他好文   时间:2019-01-25 23:21:26    阅读次数:226
963条   上一页 1 ... 7 8 9 10 11 ... 97 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!