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.
For me is the same, I have a quadratic solution but so far I'm not being able to find a linear one with just one loop. I will have to struggle more with my brain :)
omase o
You probably have a quadratic time solution !
You can solve this only looping through it once and have it be linear time.
The timeout is caused by your code being too slow, not a kata issue. Also, there are more tests, your code times out with some test and it halts the execution of further ones.