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.
Think of a math solution, not a code solution.
Please don't post solutions in discourse tab, that's what
solutions
tab is for. And as you probably figured out already, your previous solution was indeed too slow, and also incorrect :PIn future, please format your code properly when posting code blocks.
This comment is hidden because it contains spoiler information about the solution
Three different ways with less than 1s for tests and still timing out