![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
排列组合
文章平均质量分 60
小榕流光
这个作者很懒,什么都没留下…
展开
-
[leetcode] 31. Next Permutation 解题报告
题目链接:https://leetcode.com/problems/next-permutation/ Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is原创 2016-01-02 10:13:00 · 541 阅读 · 0 评论 -
[leetcode] 47. Permutations II 解题报告
题目链接:https://leetcode.com/problems/permutations-ii/ Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example, [1,1,2] have the followi原创 2016-02-21 11:42:58 · 447 阅读 · 0 评论 -
[leetcode] 46. Permutations 解题报告
题目链接:https://leetcode.com/problems/permutations/ Given a collection of distinct numbers, return all possible permutations. For example, [1,2,3] have the following permutations: [1,2,3], [1,3原创 2016-01-14 16:14:55 · 748 阅读 · 0 评论 -
[leetcode] 77. Combinations 解题报告
题目链接:https://leetcode.com/problems/combinations/ Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. For example, If n = 4 and k = 2, a solution is: [原创 2015-12-20 15:31:10 · 592 阅读 · 0 评论 -
[leetcode] 267. Palindrome Permutation II 解题报告
题目链接: https://leetcode.com/problems/palindrome-permutation-ii/ Given a string s, return all the palindromic permutations (without duplicates) of it. Return an empty list if no palindromic permu原创 2016-03-14 15:41:05 · 1619 阅读 · 0 评论