Ad
  • Custom User Avatar

    No problem.

  • Default User Avatar

    Ah, i see what you mean now. I was misinterpreting the error message, and completely missed a case. Thanks for the help.

  • Custom User Avatar

    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.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Unspoilered. You love your ellipses anter lol.

  • Custom User Avatar

    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...

  • Custom User Avatar

    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 :).

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution