摘要: Given a set of characters represented by a String, return a list containing all subsets of the characters.AssumptionsThere could be duplicate characters in the original set.​ExamplesSet = "abc", all t... 阅读全文
posted @ 2018-04-02 09:21 davidnyc 阅读(145) 评论(0) 推荐(0)
摘要: Given a string with no duplicate characters, return a list with all permutations of the characters. Examples Set = “abc”, all permutations are [“abc”, 阅读全文
posted @ 2018-04-02 05:56 davidnyc 阅读(178) 评论(0) 推荐(0)
摘要: same as LC.22. Generate Parentheseshttps://leetcode.com/problems/generate-parentheses/description/ Given N pairs of parentheses “()”, return a list wi 阅读全文
posted @ 2018-04-02 05:03 davidnyc 阅读(243) 评论(0) 推荐(0)
摘要: Given a number of different denominations of coins (e.g., 1 cent, 5 cents, 10 cents, 25 cents), get all the possible ways to pay a target number of ce 阅读全文
posted @ 2018-04-02 04:20 davidnyc 阅读(225) 评论(0) 推荐(0)