This repository was archived by the owner on Sep 22, 2021. It is now read-only.

Description
Description of the Problem
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]
]
Code
class Solution:
def permuteUnique(self, nums: List[int]) -> List[List[int]]:
Link To The LeetCode Problem
LeetCode