Skip to content

Latest commit

 

History

History

0047. Permutations II

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Topics

Given a collection of numbers that might contain duplicates, return all possible unique permutations.

Example:

**Input**: [1,1,2]
**Output**:
[
[1,1,2],
[1,2,1],
[2,1,1]
]