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.
First of all, I thought I had flagged it when I made, sorry if I did this incorrectly... secondly, of course I need a better formula, which is why I'm asking for help. I know the code works (I've tested it on my on machine) but I don't know why it is timing out in the kata.
Please use spoiler flag when you post code. You need to find a better formula.
This comment is hidden because it contains spoiler information about the solution