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.
This Kata uses a very ridiculous optimization technique. Let's just say, the Kata really wants you to optimize the fact that only up to exactly a million elements will tested. It's overkill if you ask. Your algorithm is likely correct, but try to aggressively optimize everything other than your algorithm too.