Ad
  • Default User Avatar

    I stumpled over this myself. No, you have to try to exchange the 100$ bill with a 50$ bill and a 25$ bill first and if that is False exchange the 100$ bill with 3 25$ bills. If you prorize in that order your code will work.

  • Default User Avatar

    Oh stupid me, of course you are right.

  • Default User Avatar

    test.assert_equals(tickets([25, 25, 50, 100]), "YES")

    1 +25 = 25
    2 +25 = 50
    3 -25 = 25
    4 -75 = -50

    There is something wrong with this test case.