Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Files

Latest commit

Aug 1, 2019
587e99e · Aug 1, 2019

History

History

0090.subsets-ii

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 1, 2019
Aug 1, 2019
Aug 1, 2019

Given a collection of integers that might contain duplicates, nums, return all possible subsets.

Note: The solution set must not contain duplicate subsets.

For example,

If nums = [1,2,2], a solution is:

[
  [2],
  [1],
  [1,2,2],
  [2,2],
  [1,2],
  []
]