Problem
Ask
Submissions

Problem: Permutations

Medium
30 min
Explore how to generate all possible permutations of a unique-character string in Python. Understand the problem constraints and implement solutions to list every permutation, enhancing your grasp of combinatorial algorithms 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.

  • 11 \leq word.length 6\leq 6

  • All characters in word are lowercase English letters.

Problem
Ask
Submissions

Problem: Permutations

Medium
30 min
Explore how to generate all possible permutations of a unique-character string in Python. Understand the problem constraints and implement solutions to list every permutation, enhancing your grasp of combinatorial algorithms 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.

  • 11 \leq word.length 6\leq 6

  • All characters in word are lowercase English letters.