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.
Here:
I didn't see any other sources.
OK, I've updated the description to include a note regarding the limitation on the
loop { block }
syntax.So I tried this kata with as many different kinds of loops as I could think of. It works with all of these:
The only way I could induce the 5000 iteration loop limit was using the
loop
keyword.I found that in this kata there is discussion of the same problem using the
loop
keyword.What syntax were you using when you got the error?
Codewars has timelimit 4 seconds AFAIK. Seen these number somewhere in docs or at forum. But it may be out of date.
Do you know if the loop limit is documented somewhere? Obviously not all loops are affected. I want to be accurate when I update the description.
Why?
Maybe it was Christmas Day when this solution was submitted ?