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.
thanks
what are you doing with this simple issue?
Hi
@likui911
,your code fails at the
SumOnlyOneElement
(only one!).Are you sure, you considered all constrains from the description?
This comment is hidden because it contains spoiler information about the solution
No problem.
Ah, i see what you mean now. I was misinterpreting the error message, and completely missed a case. Thanks for the help.
Well like I was saying before, the result of the operations gives a negative so you must return "No solutions". You have done the code correctly however you need to modify the result of the calculation to check if the chickens or the cows is below 0. I would suggest moving your if loop down and adding on this detail there.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Unspoilered. You love your ellipses anter lol.
I'm afraid he will not be able to see your reply, because it's marked as "spoiler", which is hidden until you solve or forfeit the kata...
Well the amount of heads is a negative so it should return "No solutions" because you can't have negative animals. If not just copy/paste your code here and I'll check for you :).
This comment is hidden because it contains spoiler information about the solution