system has some problems?

  • 0

    Click run code can get the correct results;
    while click submit, return the wrong results.

    The snapshot attached: the upper part is run by click submit; the bottom part is run by click "run code". which shows inconsistent results.

    0_1494773195381_Screen Shot 2017-05-13 at 8.31.10 PM.png

  • 0

    Do you use global variables?

    Note that the state of global variables aren't cleared between test cases.

Log in to reply

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