Change can be paid in $50 bills as well. So when vasya receives the $100 bill, he gives $50 + $25 as change.
This comment is hidden because it contains spoiler information about the solution
test6(LineTests) [25, 25, 25, 25, 50, 100, 50] expected:<[YES]> but was:<[NO]>
This means that he does not have enough as he gets 4 €25's and has to give back 5 €25 back
Loading collection data...
Change can be paid in $50 bills as well. So when vasya receives the $100 bill, he gives $50 + $25 as change.
This comment is hidden because it contains spoiler information about the solution
test6(LineTests)
[25, 25, 25, 25, 50, 100, 50]
expected:<[YES]> but was:<[NO]>
This means that he does not have enough as he gets 4 €25's and has to give back 5 €25 back