![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
全排列
文章平均质量分 75
Lynn_Baby
这个作者很懒,什么都没留下…
展开
-
LeetCode—permutations_combinations_permutations-sequence(全排列——DFS深度优先搜索)—java
题目描述:Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2], and[3,2,1].思路解析:https://blog.csdn.net/L...原创 2018-06-21 20:03:16 · 270 阅读 · 0 评论 -
LeetCode—permutations-ii(有重复数字的排列)—java
题目描述:Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following unique permutations:[1,1,2],[1,2,1], and[2,1,1].思路解析:这个题...原创 2018-06-21 20:44:49 · 484 阅读 · 0 评论