Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 210 Bytes

File metadata and controls

12 lines (10 loc) · 210 Bytes

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

For example,

[1,1,2] have the following unique permutations:

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