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.
A naked return doesn't require the variable to be explicitly called in the return line if it is already defined to be returned in the signature.
Why not, could you explain?
agree 😀
Nicely done
Thank you so much!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
That was so long ago, thanks for your comment though :)
You're surely right, there is no need in swith(true), however this days I would solve this kata without any swith() statement at all, a simple array will do better. I think I'll update solution for this kata right now.
You know you could just write switch(S) and use case 0:, case 1:, etc.. instead of having to write case S == 0:, case S == 1:, right? Not quite sure what the 'true' is in there for lol.