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.
Same here. Tests must have changed at some point?
It's a way better solution than mine was, regardless!
Isn't res supposed to be a string, not an object? How does this solution work?
At the first 100, the cash register already has 25, 50 bills which is sufficient to return to the ticket buyer who has a 100 bill.
[25, 25, 25, 25, 50, 100, 50]
✘ 'NO' should equal 'YES'
The correct answer here is NO...
I think this kata is broken? I got the following test
[25,25,50,100...] - Expected: 'YES', instead got: 'NO'
But, at the first 100, the test should get NO, because there is only 25, and we require at least 75 as change.