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.
well, because you have 'cream' and 0 is another number. I suggest putting an if in any case to have some 0.
PS: Thanks for finding this logic error. I will apply my suggestion
Interesting Kata!
Thanks!
Amazing Kata)
Please explain me why prescriprion below shoud return 1? We have 1 cream in prescription but we don't have any cream available. This mean than we cannot make any cakes, isn't it?
Wrong result for recipe {'cream': 1, 'flour': 3, 'sugar': 1, 'milk': 1, 'oil': 1, 'eggs': 1} and available ingredients {'sugar': 1, 'eggs': 1, 'flour': 3, 'cream': 0, 'oil': 1, 'milk': 1}: 0 should equal 1