Ad
  • Default User Avatar

    i rewrote the description a bit, hopefully it makes more sense

  • Custom User Avatar

    How is 200 an unusual denomination?

    Okay, now I see it explicitly mentions 200 dollar bills. Sorry for the noise.

  • Custom User Avatar

    The following isn't true

    and assuming the ATM always has enough money to satisfy a withdrawal on any amount

    Because you forgot this part:

    or output -1 if it is impossible.

    About your last two points:

    I saw a comment where there are test cases greather than 1500, so correct either the test cases or the problem statement

    Removed some sample tests in a couple languages where n was 5000, the final tests seemed ok.

    Consider removing 200 from the denominations, as there is no such thing as a $200 bill; or make it in a fictional currency instead of dollars.

    You could use Argentine Peso, we have all those notes/bills, including the 200 one.

    The kata's author seems active, so I'll let him handle the description changes.