AlgoMaster Logo

Permutations II

nums=[1, 1, 2]
0 / 8
Step:Generate every ordering; keep the first of each distinct permutation.