Ad
  • Default User Avatar

    I'm not sure if understand the Kata correctly or if there is an error.
    After running the test for submission, I had these failed tests:

    Some random tests
    ✘ Line = 100,25,25,25,100,25,50,25,100,25,50,25,100 - Expected: YES, instead got: NO
    ✘ Line = 100,25,25,25,100,25,25,50,100 - Expected: YES, instead got: NO
    ✘ Line = 100,25,25,25,100,25,25,25,100,25,50,25,100,25,25,50,100 - Expected: YES, instead got: NO
    ✘ Line = 100,25,25,25,100,25,25,50,100,25,25,50,100 - Expected: YES, instead got: NO
    ✘ Line = 100,25,25,25,100,25,25,50,100 - Expected: YES, instead got: NO
    ✘ Line = 100,25,25,50,100,25,25,25,100,25,25,50,100 - Expected: YES, instead got: NO

    If Vasya has no money to start and a ticket costs $25, how can he give change if the first person pays with $100?