Why it comes to such an error?


  • 0
    L

    Input: " b11228552307"
    Output: 2147483647
    Expected: 0


  • 0
    C

    Read the question carefully... If the first sequence of non-whitespace characters in str is not a valid integral number, or if no such sequence exists because either str is empty or it contains only whitespace characters, no conversion is performed.


Log in to reply
 

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