动态的给一个对象添加一些额外的职责, 就增加功能来说, 装饰模式比生成子类更为灵活.
Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set).
The set [1,2,3,…,n] contains a total of n! unique permutations.
Given a set of candidate numbers (C) (without duplicates) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.