LeetCode icon indicating copy to clipboard operation
LeetCode copied to clipboard

08_StringtoInteger.cpp

Open shuangliyue opened this issue 6 years ago • 0 comments

39行,应该加上括号,要不然如输入"2147483646"时会先计算 2147483640 + 54造成overflow, num = num * 10 + (str[i] - '0');

shuangliyue avatar Mar 10 '19 07:03 shuangliyue