Ad
  • Custom User Avatar

    I don't believe there is a bug on this test. I thought there was a problem with the test as well, so you might be making the same mistake I was making. A possible hint to the solution is to be as greedy as possible when it comes to using 25 dollar bills for change. Try to return change that uses the least amount of 25 dollar bills as possible.

  • Custom User Avatar

    You can if you give him 50+25. But I still cannot pass this test..

  • Custom User Avatar

    For those wondering how to check what the test was, print(people) in your code and check the output.

    I do believe there is a bug on this test:

    [25, 25, 25, 25, 50, 100, 50]
    'NO' should equal 'YES'

    Vasya, will have change as follows: $25, $50, $75, $100, $75, $0 and will not have the $25 to give to the last person with $50 dollars. Am I wrong?