One test case is wrong


  • 0
    M

    The following test case is wrong, please fix it:
    Input:"2147483648"
    Output:2147483648
    Expected:2147483647


  • 0
    M

    Quite. And if you are using 32bit integers (or emulating the behaviors of them), the answer should be -2147483648, which agrees with the standard atoi function.


Log in to reply
 

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