input [1, -1],
output should be false,while OJ gives true.
Looks if the total sum is zero, OJ gives the wrong answer
Run Code Result:×
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.