摘要:Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.Example:Input: n = 4, k = 2Output:[ [2,4], ... 阅读全文
posted @ 2019-03-02 20:21 lightmare 阅读 (32) 评论 (0) 编辑
摘要:Given a collection of numbers that might contain duplicates, return all possible unique permutations.Example:Input: [1,1,2]Output:[ [... 阅读全文
posted @ 2019-03-02 18:00 lightmare 阅读 (114) 评论 (0) 编辑