Why is it in some test cases the correct return value are above the maximum integer value in Java?


  • 0
    S

    This is one example:

    Input: 1 (00000000000000000000000000000001)
    Output: 2147483647 (01111111111111111111111111111111)
    Expected: 2147483648 (10000000000000000000000000000000)


Log in to reply
 

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