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)
Loading collection data...
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)