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