摘要: 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 阅读(149) 评论(0) 推荐(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 阅读(455) 评论(0) 推荐(0) 编辑