Given an integer array nums of unique elements, return all possible subsets (the power set). The solution set must not contain duplicate subsets. Return the solution in any order.
Asked at 17 companies
AdobeAmazonApple
Hints
1.Think about what data structure fits Subsets
2.Consider the brute force complexity and how to optimize