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.
I really think this is a solution for javascript case.
https://en.wikipedia.org/wiki/Precomputation
During this 7kyu (!!!) i spend mostly time not on programming, but on math - had to rememeber a lot of stuff
For my POV, this is too much for 7 kyu and this hacky solution can overcome that hacky kata...
Its never mentioned that you can't use pre-computated tables as solution
It really depends on difinition of a problem in real world; + for this solution - it's really fastest
Great kata, but my previous one was https://www.codewars.com/kata/5ac616ccbc72620a6a000096 (5kyu)
And they are really incompareable in terms of complexity...