At least one test case is WRONG, pls fix it.


  • 0
    S

    Example:

    Input: "2147483648"

    Output: -2147483648

    Expected: 2147483647


    Another example:

    Input: " +123a654"

    Output: 0

    Expected: 123


  • 0
    C

    I do not think they are wrong. Expected answers meet the requirement.


Log in to reply
 

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