String to Integer (atoi)
CodingSoftware Engineer
Company question banks are included with the Insider plan.
Implement the myAtoi(string s) function, which converts a string to a 32-bit signed integer.
The algorithm for myAtoi(string s) is as follows:
" ").