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.
Hmm, that is a good point. I hadn't thought about it from the point of view of trying to pass the tests just by memorizing the order of answers. Will address that next…
Added random tests for JavaScript.
Added random tests for Java.
Thanks for pointing that out. I will work on some random tests. Are "local tests" the example ones the user gets given when they train on that kata? I've just added some of those for JS. Truth be told I didn't intend to write a JS translation, but I couldn't convince codewars to remove JS from the list so I did what I could. I forgot to paste into the Example Test section.
This comment is hidden because it contains spoiler information about the solution
Nice mathematical kata. Thanks for creating this.
I have no idea what the difference was between my various submissions where only two of them allowed me to SUBMIT FINAL. It was nothing to do with the time taken, since I finally submitted on a run that took 117ms, but I could not submit the final solution on an earlier run that took 80ms. All of these runs showed all tests passing.