← 返回 google 的题目列表Subset (without duplicate)
类型:online_judge
Given an integer array of unique elements, return all possible subsets.
Example:
Input: nums = [1,2,3]
Output: [[], [1], [2], [3], [1,2], [1,3], [2,3], [1,2,3]]
Example
Input
[1,2,3]
Output
[[],[1],[2],[3],[1,2],[1,3],[2,3],[1,2,3]]