logo
Interview
    Interview Guide
    Coding Problems List
Sponsored: Coursera
Problems

Permutations II

Problem

Given a list of numbers with duplicate number in it. Find all unique permutations.

Example

For numbers [1,2,2] the unique permutations are:

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

Online Judge