2015年11月29日

Permutations II

摘要: Question:Given a list of numbers with duplicate number in it. Find alluniquepermutations.Example:For numbers[1,2,2]the unique permutations are:[ [1,2... 阅读全文

posted @ 2015-11-29 09:03 BillZ 阅读(181) 评论(0) 推荐(0) 编辑

2015年11月28日

Subsets

摘要: Question:Given a set of distinct integers, return all possible subsets.Example:If S =[1,2,3], a solution is:[ [3], [1], [2], [1,2,3], [1,3], [2,... 阅读全文

posted @ 2015-11-28 10:32 BillZ 阅读(260) 评论(0) 推荐(0) 编辑

导航