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.
Unless the lesson you learn is that sometimes there is an easier path.
Thankfully no one seems to have distilled it down that short 😂.
This is a genuinely long problem. Some very good and varied solutions to it. Lots of fun little sub problems to break down.
The point of a kata is to come up with a clever solution to a problem. The realization that lead to this answer is why this kata was written the way it was.
Because you're extending your array ad infinitum, you have an infinite loop there.
The point of this kata is "this solves the problem". IMO.
Read that part again, you're returning true in cases where not all those conditions are met.