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.
AHHHH I see now. Sorry, I had a mental block on this one. Thank you.
What?? They handed you 100, not 75. And you're supposed to give out change, not the customer. You can't give back change of 75 when you only have 25 from first customer.
No, they pay you with a 100 dollars bill. And you only have the 25 dollars bill of the previous client.
Test.assertEquals(tickets([25, 100]), "NO");
...if someone hands over $100 for a $25 ticket, they've handed you the $75 change they're due. There would be no need to make change from the drawer.
RIGHT??
Man... this is beautiful. Sooo much cleaner and straightforward than my approach. Nice work!
I'd be curious to see your solution in this case. :)
Are you starting from 1 instead of 0?
This one is interesting. It helped me think about domain names, which actually made it pretty straightforward.