Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set).
Note
The solution set must not contain duplicate subsets.
Example
Input: [1,2,2]
Output:
1 | [ |
Code
1 | public List<List<Integer>> subsetsWithDup(int[] nums) { |