String to Integer (atoi)
๐ง Problem
String to Integer (atoi)
Implement the myAtoi(string s) function, which converts a string to a 32-bit signed integer (similar to C/C++'s atoi function). The algorithm for myAtoi(string s) is as follows: Note:
๐ท๏ธ Tags
string
๐ Difficult...
releetcode.hashnode.dev1 min read