All Permutations
Podając ciąg znaków, proszę zwrócić wszystkie możliwe permutations jego znaków, posortowane alfabetycznie.
Wejście: String (str).
Wyjście: Iterable (Iterable) ciągów znaków (str).
Przykłady:
assert list(string_permutations("ab")) == ["ab", "ba"]
assert list(string_permutations("abc"))...You should be an authorized user in order to see the full description and start solving this mission.