排列组合
HCacm
这个作者很懒,什么都没留下…
展开
-
leetcode 46. Permutations
Discription Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not us原创 2017-10-11 16:51:22 · 199 阅读 · 0 评论 -
leetcode 47. Permutations II
相关问题leetcode 46. PermutationsDiscription Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example, [1,1,2] have the following unique permutation原创 2017-10-11 20:20:17 · 196 阅读 · 0 评论 -
leetcode 77. Combinations
Discription 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:[ [2,4], [3,4], [2,3], [1,2], [1,3],原创 2017-10-12 15:59:46 · 248 阅读 · 0 评论