Permutations of a list with duplicates
Return every distinct ordering of a list that may contain repeated values, with no duplicate orderings in the output. Sort first and skip a value at a position when an equal value was already tried there.
No answer yet. Write the first one; the best answer gets endorsed.
