Skip to content

Files

Latest commit

af138b3 · Apr 3, 2020

History

History

0090.subsets-ii

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 3, 2020
Apr 3, 2020
Apr 3, 2020

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:
[
  [2],
  [1],
  [1,2,2],
  [2,2],
  [1,2],
  []
]

解题思路## 可能的變化