Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 262 Bytes

question.md

File metadata and controls

19 lines (12 loc) · 262 Bytes

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], [] ]