...

/

Solution: Permutations

Solution: Permutations

Statement

Given an input string, word, return all possible permutations of the string.

Note: The order of permutations does not matter.

Constraints:

  • All characters in word are unique.

  • 11 \leq word.length 6\leq 6

  • All characters in word are lowercase English letters.

Access this course and 1400+ top-rated courses and projects.