Ad
  • Custom User Avatar

    For this test cases fail:

    test.assert_equals(tickets([25, 25, 50]), "YES")
    test.assert_equals(tickets([25, 100]), "NO")
    test.assert_equals(tickets([25, 25, 50, 100, 25, 25]), "YES")
    test.assert_equals(tickets([25, 25, 50, 100, 25, 50]), "YES")
    test.assert_equals(tickets([25, 25, 25, 25, 25, 25,25,25,25,25,25,25,100,100,100,100]), "YES")
    test.assert_equals(tickets([25, 25, 25, 25, 25, 25,25,25,25,25,25,100,100,100,100]), "NO")
    test.assert_equals(tickets([100,100,100,100, 25, 25, 25, 25, 25, 25,25,25,25,25,25,25]), "YES")
    test.assert_equals(tickets([100,100,100, 25, 25, 25, 25, 25, 25,25,25,25,25,25,100]), "NO")
    test.assert_equals(tickets([25, 25, 25, 25, 25, 25,25,25,25,25,25,25,50,50,50,50]), "YES")
    test.assert_equals(tickets([25, 25, 25, 25, 25, 25,25,25,25,25,25,50,50,50,50,100]), "YES")
    test.assert_equals(tickets([25, 25, 50]), "YES")
    test.assert_equals(tickets([25, 100]), "NO")
    test.assert_equals(tickets([25, 25, 25, 25, 25, 25, 25, 25, 25, 25]), "YES")
    test.assert_equals(tickets([50, 50, 50, 50, 50, 50, 50, 50, 50, 50]), "NO")
    test.assert_equals(tickets([100, 100, 100, 100, 100, 100, 100, 100, 100, 100]), "NO")
    test.assert_equals(tickets([25, 25, 25, 25, 50, 100, 50]), "YES")
    test.assert_equals(tickets([50, 100,100]), "NO")
    test.assert_equals(tickets([25, 25, 100]), "NO")
    test.assert_equals(tickets([25, 25, 25, 25, 25, 25, 25, 50, 50, 50, 100, 100, 100, 100]), "NO")
    test.assert_equals(tickets([25, 25, 50, 50, 100]), "NO")
    test.assert_equals(tickets([25, 50, 50]), "NO")
    test.assert_equals(tickets([25, 25, 25, 100]), "YES")
    test.assert_equals(tickets([25, 50, 25, 100]), "YES")
    test.assert_equals(tickets([25, 25, 25, 25, 25, 100, 100]), "NO")

    Supposily in the last one, but if i put the last one alone it does not fail

  • Custom User Avatar