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