why the test case give different result when the temp result is larger than the max Integer


  • 0
    P

    both of the answers status are WA, but the first one return:

    Input: "2147483648"
    Output: 0
    Expected: 2147483647

    the second one return:

    Input: " b11228552307"
    Output: 2147483647
    Expected: 0

    I think the temp result of two test case are larger than the max Integer 2147483647, but why the expected are different?


Log in to reply
 

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