Skip to content

Latest commit

 

History

History

008.String to Integer (atoi)

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
Implement atoi to convert a string to an integer.
字符串转整数,忽略前置空格,数字后的字符,考虑前置+-。
若输出乘10再除10不再等于本身,则说明溢出。