I submit my python code, now i get this:
1027 / 1032 test cases passed.
Status: Wrong Answer
Can anyone tells me why the expected answer is 0?
because you didn't think about the limits of int;. INT_MAX=2147483647;INT_MIN = –2147483647 – 1. wish to help you.
@tuntianshishen OK, thank you very much !
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.