Created
January 13, 2020 22:33
-
-
Save amejiarosario/947cf44ab684f33a577e92490f8cd59f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time node ./lib/permutations.js | |
# getPermutations('abcdefghij') // => abcdefghij, abcdefghji, abcdefgihj, abcdefgijh, abcdefgjhi, abcdefgjih, abcdefhgij... | |
# // n = 10, f(n) = 3,628,800; | |
# ./lib/permutations.js 8.06s user 0.63s system 101% cpu 8.562 total |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment