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.
The kata aka specification states that a boolean is given, so in real life an error should be raised. However, kind of exception handling is out of scope of kata imHo.
Therefore, the solution is fine.
You do realize, that when you are "experimenting", you're using server's CPU for heavy computational task for free, don't you? If there was no timeout, some "experiments" would just kill the server for everyone else.
Solve it in your own IDE instead then
That because you need an efficient solution rather than a slow one