Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 263 Bytes

File metadata and controls

13 lines (11 loc) · 263 Bytes

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