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.
And still it was voted Best Practices and Clever.
This code is clean but wrong. As example: tickets( [ 50, 25 ] ) returns "YES" while it is to return "NO".
Yes, you're right.
You're right, it fails in that case.
This code is not working for cases like[25,100,25,25], because it checks m25<0 outside the loop at the very end. I think it should check m25<0 at each iteration.
I think the problem might be, that you really need to check for each customer if your 25s aren't under zero, not just at the end.
at first i really like your clean codes, but after I run it, it does not even pass the test, and i don't know where went wrong. could you tell me if it passed all your tests? thanks.
Thank you for spending your time on my work :)
Thank you! I really enjoyed this one.
Great work!