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.
very nice!
very fun question and optimizations, my code reliably passed the tests with at most 6000ms so you dont have to depend on luck.
there is always a level of randomness in the tests as expected, but if you are passing only sometimes there might be more optimizations to try.
Nonetheless, optimizing code for speed is important and fun.
I hope this kata is approved :)