My answer runs correctly in the “run code” mode, even with the case that "fails" me in the submission.

  • 0

    I think the OJ is wrong about judging my answer.
    It keeps giving me the time limit exceeded message. But I tried that input in run code mode, and it can give the right answer.
    It's O(n).

  • 0

    The run mode is probably more permissive than the online judge. It allows you to execute your code for longer than the the OJ.

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.