Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
.
I am having the exact same problem your are here, any luck?
This comment is hidden because it contains spoiler information about the solution
25 Change = 25
25 Change = 50
50 Change = 75
100 Change = 0 and ticket sold (YES)
Hope it helps.
F
This comment is hidden because it contains spoiler information about the solution
Unless I'm missing something, the test case is incorrect. The question states that he has to sell the tickets strictly in the order of the people in line:
✘ Line = 25,25,50,100,25,25,50,100,25,25,50,100,25,25,25,100,25,25,50,100 - Expected: YES, instead got: NO
25 Change = 25
25 Change = 50
50 Change = 25
100 Not enough change, would return NO
This may be a dumb question, but we have to write our test cases for this?