Permutations II

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

Here I use set... maybe other approaches are better
Another solution is to use next permutation.

Comments

Popular posts from this blog

Maximum Gap

[ITint5] Maximum Subarray for a Circular Array

[CC150] Chapter 4 Trees and Graphs