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.
The test is good but the log is not clear: you return 10, and the test wants 12. So 10 != 12, which is wrong. Revise your code :)
A clearer log would be:
expected 12, instead got 10
This comment is hidden because it contains spoiler information about the solution
This is "YES", all tickets can be selled!
yes, i got my mistake, sorry
i didn't notice that 50 or 100 is only one bill and used it for example like '100 - 25 = 75'
F# translation :)
All those tests are ok, in the first one you can't give change to the last customer with a 50 dollars bill, the second, the last 100 dollars bill and so on.
Read that again, it seems you're grabbing all the money and then giving the change when you should give change to every customer in the order they come.
This comment is hidden because it contains spoiler information about the solution
The test is ok, your code is wrong. Read the posts below. Think how you give back the change.
[25, 25, 25, 25, 50, 100, 50] 'NO' should equal 'YES'. It's test wrong.