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.
No, month
1, 2, 3
will give a result of1
, notice the first condition:month <= 3 ? 1
it can only get tomonth <=6 ? 2
if that first condition failswhat if month <= 6 that mean 2
so month 1 or 2 or 3 that mean 2?
Honestly didnt know you could link conditional operators like that!
What if user types in 57 ? It still returns 4. It should return something else 0 i.e.
This was a very interesting Kata, it took me about 3 mins to complete in C++, but I still found it more enjoyable to solve than other Katas that take 10 or even 20 mins to solve!
This was a very cool Kata, at first it seemed very confusing, but once you go through all of the bugs it will help you learn technical stuff that I didn't know about! (C++)