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.
Got it, thanks for the heads-up... I'll make sure to use the spoiler flag next time🙏
Hi, you should know that users that have not solved the kata can see any comments on solutions. So, do not discuss code / solutions without using the spoiler flag. I have added the flag to your comment.
This comment is hidden because it contains spoiler information about the solution
Thanks for this example, now I know how to do it without the method and I understood the logic
Impressive bro
Nice, the basic conditions plus the final
return false;
checks for all other cases, when the numbers might be negative.