Subsets II
Description
Input: [1,2,2]
Output:
[
[2],
[1],
[1,2,2],
[2,2],
[1,2],
[]
]Solutions
My solution
Another iterative solution
Recursive solution
Related question
SubsetsLast updated