Report A wrong Testcase

  • 0

    My code got the following test case

    Input: 2147483648
    output: 0
    expect: 2147483647

    I think this is an error.

  • 1

    The spoiler says,

    If no valid conversion could be performed, a zero value is returned. If the correct value is out of the range of representable values, INT_MAX (2147483647) or INT_MIN (-2147483648) is returned.

Log in to reply

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