Leetcode journey - Question 8 - String to Integer (atoi)
Problem:
Q8. 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:
Read in and ignore any leading wh...
imsudip.hashnode.dev4 min read