dfs_back_track
肖冬禹想要拿OFFER
人生已如此悲惨,只求能去湾区养老。。。
展开
-
22. Generate Parentheses
https://leetcode.com/problems/generate-parentheses/ Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, givenn= 3, a solution set i...原创 2019-03-15 01:12:24 · 193 阅读 · 0 评论 -
17. Letter Combinations of a Phone Number
https://leetcode.com/problems/letter-combinations-of-a-phone-number/ Given a string containing digits from2-9inclusive, return all possible letter combinations that the number could represent. A m...原创 2019-03-15 01:39:06 · 182 阅读 · 0 评论 -
46. Permutations
经典题了 https://leetcode.com/problems/permutations/ Given a collection ofdistinctintegers, return all possible permutations. Example: Input: [1,2,3] Output: [ [1,2,3], [1,3,2], [2,1,3], [2...原创 2019-03-15 02:23:09 · 185 阅读 · 0 评论 -
39. Combination Sum
https://leetcode.com/problems/combination-sum/ Given asetof candidate numbers (candidates)(without duplicates)and a target number (target), find all unique combinations incandidateswhere the ca...原创 2019-03-15 05:33:16 · 182 阅读 · 0 评论