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.
Heh - I forgot the trick where if you set a default value in the function signature, the instance persists.
Thanks for the pointer
Note: Using Python
Testing my algorithm offline, I can complete a 100000 test run in 1.15 seconds. In the codewars environment, this times out after 12 seconds, meaning that I cannot submit my solution.
Annoying...