03 2019 档案

摘要: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 阅读(152) 评论(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 阅读(463) 评论(0) 推荐(0) 编辑
摘要:Given a collection of distinct integers, return all possible permutations.Example:Input: [1,2,3]Output:[ [1,2,3], [1,3,2], [2,1,3],... 阅读全文
posted @ 2019-03-01 23:04 lightmare 阅读(129) 评论(0) 推荐(0) 编辑
摘要:Given two strings s1 and s2, write a function to return true if s2 contains the permutation of s1. In other words, one of the first st... 阅读全文
posted @ 2019-03-01 23:04 lightmare 阅读(87) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示