/images/avatar.png

LeetCode-8-String to Integer (atoi)

8.String to Integer (atoi) Implement atoi to convert a string to an integer. 讲字符串转化为整型。当然过程很简单,但是需要考虑的乱七八糟的情况很多,空格和正负号之类的。提交了一百次,终于过了,