Log in
← All problems

All arrangements of a word

hardRecursion40 XP

Return every different arrangement of the letters of s, each once, sorted alphabetically. Letters may repeat in s.

Examples

Examples use JSON: true/false/null are True/False/None in Python.

Run examples checks the examples above. Submit also runs 3 hidden tests.