The maxinum and mininum of integer in Java is not the same as used in test case.

  • 1

    The below numbers are not form Java, but it is used in the test cases, so my solution always failed when return Integer.MAX_VALUE and Integer.MIN_VALUE
    INT_MAX (2147483647) or INT_MIN (-2147483648)

    Can you use another value for Java language?

Log in to reply

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