Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Published a Ruby translation.
A few more test cases (large and negative numbers might be good).
Many better solutions available than this one... all I did was find a way to make permutations sufficiently tractible in the time, but only works for a subset of bignums. (edit: redid this solution later)