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.
[25, 25, 50, 50, 100] the return will be "NO" cause the ticket price is 25 and after selling 4 you have no $25 bill left So How you can return $75 to the buyer..
doesnt support formatted string....XOXO
my final answer for every new test case is incrimented by 1 each time
this kata works fine on pycharm but not here whats the problem? im using recursion
For that test you can't give change for the 100 dollars bill with two 50 dollars bills.
even for this [25, 25, 50, 50, 100] it should be returning a 'YES' instead says 'NO'
Either reading the logs or the error message wrong. The log appears above the test result and 'NO' should equal 'YES' means your function returned 'NO' instead of the expected 'YES'.
This is the test and you can see it expects 'YES'
test.assert_equals(tickets([25, 25, 25, 100]), "YES")
for [25 25 25 100]
the answer is 'YES' but says to return 'NO'
balance 1st =25
then balance = 50
then = 75
and 100 - 25 =75
so it should be 'YES'
am i doing it right