Search⌘ K
AI Features

Permutations

Explore methods to generate every possible permutation of a given string with unique lowercase letters. Understand the problem constraints and apply the correct logic to solve permutation challenges in coding interviews.

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.

  • ...