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.
|| - old and bad solution, need ?? - best and clever.
cheers 壟
best & clever
This is one of the best solutions for this kata. Its nice when you don't use "ifs/switches" that turns your code more complex
I perfectly understand it now! Thank you very much.
Use spoiler flag, please.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Could anyone explain this, please? I can't figure out how
days[num - 1] || ...
works.