Ad
  • Default User Avatar

    Please disregard the last comment. There was a bug in my code. All tests passed now, thanks for the nice Kata

  • Default User Avatar

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

  • Default User Avatar

    Hmm, I see. I assumed that we could break the money, if we needed so. I'll give it another go then and let you know.

  • Custom User Avatar

    All cash can't be used as change. You cannot just split a 100 into 25s in order to return it as change. A 50 may be used if the customer gives you a 100. A 25 is always useful. Your code just counts the total cash you have.

  • Custom User Avatar

    I don't know how to look at the test case

    You can print the input to your function.

    in this case the answer would be "YES"

    No, the answer would be "NO".
    There are 5 25s the clerk gets. You need 6 25s to make change for the 2 100s you will get at the end. There isn't enough change.

  • Default User Avatar

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