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.
Yes mine failed with price = 54 discount = 5 holiday_cost = 8856
This will FAIL in some cases, i did it like this, but division in python using // is not always precise, use with care
PD: I was getting an error but attempt it until a random case didn´t break my code :-)
my boh
I believe this fails for index == len(items), the conditional is true so it'll try to look it up but the index is out of bounds.
25 Change = 25
25 Change = 50
50 Change = 75
100 Change = 0 and ticket sold (YES)
Hope it helps.
F
Shame so many broken tests, this was actually a nice kata.
I got 5 broken tests (all starting with 100) and failing like this:
"Line = 100,25,50,25,100,25,25,50,100 - Expected: 'YES', instead got: 'NO'"