![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
回溯
str_818
这个作者很懒,什么都没留下…
展开
-
【Leetcode】46. 全排列(Permutations)
Leetcode - 46 Permutations (Medium)题目描述: 给定无重复的整数序列,返回所有全排列的可能。Input: [1,2,3]Output:[ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1]]public List<List<Integer>> per...原创 2019-06-08 22:36:26 · 175 阅读 · 0 评论 -
【Leetcode】17. 电话号码的字母组合(Letter Combinations of a Phone Number)
Leetcode - 17 Letter Combinations of a Phone Number (Medium) Input: "23"Output: ["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"].Map<String, String> map = new HashMap<String, Str...原创 2019-06-04 08:51:24 · 159 阅读 · 0 评论 -
【Leetcode】22. 生成括号(Generate Parentheses)
Leetcode - 22 Generate Parentheses (Medium)题目描述:给定整数 n,生成包含 n 个括号合法字符串的所有组合。[ "((()))", "(()())", "(())()", "()(())", "()()()"]解题思路:结合合法括号的特性。public List<String> generateParenthe...原创 2019-06-04 22:34:28 · 157 阅读 · 0 评论