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 comment is hidden because it contains spoiler information about the solution
Great Kata!
Took me 5 days to solve though.
I couldn't concentrate on other things as this kept bothering my brain.
My code passes 2 test cases and then times-out.
The example test takes ~3000ms, but it takes ~3000ms even if I reset everything to the initial state.
Is this time-out caused by the inefficiency of my code, or is it something else?
(I am using C++).