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.
That won't happen, since
1 <= month <= 12
(see description)Would you mind to elaborate? It's almost the same solution in C.
Why would .to_i be necessary? The array consists of integers only.
Sorry but even though this seems to pass the tests, the attempt looks wrong to me.
Let's say the the hero has 5 bullets and 2 dragons to fight. This solutions returns 'false' then, even though the hero has enough bullets (he only needs four).
Maybe I'm overlooking something here, but it misses the point of the instruction and doesn't do what is asked for.
Nice! I think you could even omit "return".
This is just beautiful to look at. My personal favourite!