Is the test cases correct? as "+-1"->0, "2147483648"->2147483647?

  • 0

    It says "+-2" should get 0 while I can get 2;

    it says "2147483648" should get 2147483647 while I can get 0 for overflow.


    It even syas "-11919730356x" should get "-2147483648" while I also get 0 for overflow...


    Is it just me ore all these test cases don't make sense.....

Log in to reply

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