Bug report, please add test cases.


  • 0
    L

    The bug case is:
    [2147483647, -2147483648]

    Apparently, the result should be 1, but the expected answer gives 2.
    This is due to Integer.MIN_VALUE = Integer.MAX_VALUE + 1.


Log in to reply
 

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