Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 317 Bytes

README.md

File metadata and controls

13 lines (7 loc) · 317 Bytes

permutations

Given the following function call:

  • permutations('abc');

And the resulting output:

  • ["abc", "acb", "bac", "bca", "cab", "cba"];

Create a function definition that achieves the output with the given input.

Solution Set