← 返回 google 的题目列表Subset with duplicates
类型:online_judge
Given an integer array that may contain duplicates, return all possible subsets. The solution set must not contain duplicate subsets.
Example:
Input: nums = [1,2,2]
Output: [[],[1],[1,2],[1,2,2],[2],[2,2]]
Example
Input
[1,2,2]
Output
[[],[1],[1,2],[1,2,2],[2],[2,2]]