Ad
  • Default User Avatar

    I followed up on this after having this issue, but I think the reply was hidden.

    Put in some debugging and add a timer to cut it off before 7 seconds and you'll see what the issue is.

  • Default User Avatar

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

  • Default User Avatar

    Are you using python? I had the same issue you are reporting with the python test case is because the test is passing the same array to both the function and the validation since it should be the same. I was actually changing that original array and returning a new one, and it validated the new array againt the one I changed.

    Technically, that's a feature of python that the array passed to function is not being copied but being changed globally. But for the cleanliness of the test, it should probably be tested against a different array.

  • Default User Avatar

    Can't submit with python

    I can pass any test case I write quickly, but when I submit to test with official cases, it times out at 7000ms no matter what. I changed the funtion back to just return 0 and it returns an unknown error instead of a fail.