One of the test cases is contradicting the question

  • 5

    The question states: "the expression string contains only non-negative integers", yet there is a test case "0-2147483648".

    I suppose the "non-negative integers" here should only refer to those i in which (i >= 0 && i <= Integer.MAX_VALUE)?

  • 0

    I totally agree with you. And I really think this test case is annoying even negative integers is allowed. We just change everything to long long.

  • 0

    Thanks for the feedback. I have replaced the test case with "0-2147483647".

Log in to reply

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