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.
Fixed some time agoo
too late - we don't want to invalidate 1,139 solutions
Re-raised the issue since this applies too all languages.
Fixed renaming the class name in initial solution, test cases become locked in a language once 500 warriors have solved the kata in it.
Done.
I would use suggestion, not issue. The kata works.
Shouldn't this issue be resolved?
'First transaction thru transaction four: add $25 to the register (total is $100).
Fifth transaction: make change for $25 ($75 in register).'
You're making change for the customers, but you're forgetting to take their initial bill. In essence, you're giving all of your money away. Your total value should increase by $25 because that's what each customer is paying.
You have 4 $25 bills after 4 transactions.
Fifth:
Get $50 bill, give one $25 bill back.
You have 1 $50 bill, 3 $25 bills.
Sixth:
Get $100 bill, give one $50 bill and 2 $25 bills back.
You have 1 $100 bill, 1 $25 bill left.
Seventh:
Get $50 bill, give one $25 bill back.
You have 1 $100 bill, 1 $50 bill left.
So you should return "YES".
Thanks for suggestion.
Create a function so that for every integer n the function will return x + n
This could be a new Kata, since some of the previous solutions won't pass for this requirement and warriors need to modify their code.
I added the bonus part into the description. Thank you.