IncredibleThings

导航

2016年8月24日 #

LeetCode-Permutations II

摘要: 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], [2,1,1] ]... 阅读全文

posted @ 2016-08-24 03:51 IncredibleThings 阅读(137) 评论(0) 推荐(0) 编辑

LeetCode-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,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1] ] ... 阅读全文

posted @ 2016-08-24 01:07 IncredibleThings 阅读(132) 评论(0) 推荐(0) 编辑

LeetCode-Combination Sum II

摘要: Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each number in C may only be used once in the combinatio... 阅读全文

posted @ 2016-08-24 00:09 IncredibleThings 阅读(107) 评论(0) 推荐(0) 编辑