Subsets II
Given a collection of integers that might contain duplicates,nums, return all possible subsets (the power set).
Each element in a subset must be in _non-descending _order.
The ordering between two subsets is free. The solution set must not contain duplicate subsets.
Example
Input:[1,2,2]
Output:
[
[2],
[1],
[1,2,2],
[2,2],
[1,2],
[]
]Note
当第二次见到这个重复的元素
i != start && nums[i] == nums[i - 1]Code
Last updated