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.
That
n
is part of another expression, and,1
is setting initial value.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.