What's the correct result for [-2147483648,2147483647]?

  • 0

    The judge doesn't check this one. It gives result 1 since 2147483647 + 1 overflows to -2147483648, but I'm not sure if this is semantically correct.

Log in to reply

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