Tap here to switch tabs
Problem
Submissions

Problem: Permutations

Permutations gives you a string with no repeated characters and asks you to return every distinct arrangement of those characters, in any order.

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.

  • 1≤1 \leq word.length ≤6\leq 6

  • All characters in word are lowercase English letters.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Permutations

Permutations gives you a string with no repeated characters and asks you to return every distinct arrangement of those characters, in any order.

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.

  • 1≤1 \leq word.length ≤6\leq 6

  • All characters in word are lowercase English letters.