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.
The example tests you get when pressing
Test
have much much fewer tests. Passing those is not a guarantee that you're going to pass the real test suite. If you failed a test in the real test suite, that would be something to get to the bottom of.(also, I later ran your code, and it's got a severe bug in it)
My code passed the tests but failed the attempt. I don't know why, it was basically exactly this. I had to forfeit. Annoyed.
I understand this solution , but what I don't get it why if there is no meal , the count will be 1. I thought is supposed to be 0?