Ad
  • Custom User Avatar

    I didn't check test cases but tried my incorrect and Chrono79's suggested solution. Both give fail now but with simple 'if' I still pass all test cases for Attempt so random tests also need something similar to 'AabcBBB' case but with random

  • Custom User Avatar

    Removed 'spoiler' flag. But there is no code, if that's your expectation.

  • Custom User Avatar

    @yrprth, @Chrono79 : The random tests now generate inputs that expect true for approx 50% of the random tests.
    Thank you for your patience.

  • Custom User Avatar

    it is showing list out of index error

  • Custom User Avatar

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

  • Custom User Avatar

    This comment is hidden

  • Custom User Avatar

    Python tests should be reworked because this solution pass them.
    Similarly Javascript tests are also weak, so this solution also pass.

    Basically, you should make sure random tests also generate inputs expecting true (ideally 50% chances).

  • Custom User Avatar

    I see the follwing Test Case for Attempt

    test.assert_equals(is_in_middle("AAabcBBB"), True)
    

    but for Sample Tests we have also Test Case

    test.assert_equals(is_in_middle("AabcBBB"), False)
    

    my solution(incorrect solution) fails this Sample Test and I expect that the solution should fail also Attempt but it passed it. My point is that wrong solution can pass Attempt Tests.

  • Custom User Avatar

    There is only one test case with the same input of AabcBBB between the "Example Tests" and the
    other tests that are run when you click the "Attempt" button.

    Plese review your solution again.

  • Custom User Avatar

    My solution fails the base test (and this is correct test fail) but succesfully passed tests on submit. Failed base test is from description 'is_in_middle("AabcBBB") -> False'. I think submit tests should be updated with similar to 'AabcBBB' case. Python.

  • Custom User Avatar

    It is showing one test case failed for middle one

  • Custom User Avatar

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

  • Custom User Avatar

    I ran the test cases using your code, and did not have an issue with the random tests whatsoever.
    They all passed.
    By the way, I am using Node v12.x
    I hope that helps.

  • Custom User Avatar

    Inside your function, display (print in Python, console.log in JavaScript) to see what the value of the input is.
    That should give you some idea of which test cases are failing.

  • Custom User Avatar

    Some test cases still showing failed . I don't understand which one?

  • Loading more items...