@zhenyu051988 I believe that it is you who is wrong. -321 is expected answer. -00321 is not for human beings to read.
ps. this is a technical related forum, stop saying annoying statements like "Next time Please make you answer accepted first".
Why do you not need to check the signs and multiply by cmp(x, 0) at the end? @bitzhuwei
@xixinxin I no know po zhu is no is BIT's, but I am BIT's
@bitzhuwei This way of check overflow doesn't work in Puzzle8
@bitzhuwei What happens when the input is 1?
@swx1031 BIT 的英文都这么差吗？
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.