Ad
  • Custom User Avatar

    For that test you can't give change for the 100 dollars bill with two 50 dollars bills.

  • Default User Avatar

    even for this [25, 25, 50, 50, 100] it should be returning a 'YES' instead says 'NO'

  • Custom User Avatar

    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")

  • Default User Avatar

    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

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Im finally understood it. Sorry

  • Custom User Avatar

    Yes, the expected results are ok and you're returning them wrong, analyze why. You're not using all bills to give change it seems.

  • Custom User Avatar

    Test 6 with data 25 25 50 100 returns YES when there is actually NO answer. Same for test 17 with data 25 25 25 25 50 100 50 and it returns YES when actually there is NO. Am I really calculated it wrong?

  • Custom User Avatar

    Print the input, the tests are ok. When the problem is in your code, use Question label instead.

    C# Completions 3345

  • Custom User Avatar

    Im passed all the tests exluding 6 and 17 ones using C#. Is there a way to look at this tests? How can I figure out what is wrong with my program?
    UPD: Test 17: Log 25 25 50 100; My result: NO; Test: YES.