Skip to content

Instantly share code, notes, and snippets.

@imarban
Last active August 27, 2015 23:42
Show Gist options
  • Save imarban/e71ee4362a0a16282b16 to your computer and use it in GitHub Desktop.
Save imarban/e71ee4362a0a16282b16 to your computer and use it in GitHub Desktop.
Get all the permutations of a word
This code aims to get all the permutations of a word.
e.g. If the "abc" string is received, the otuput will be ["abc", "bca", "cba", "cab", "acb", "bac"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment