Implement a function that converts a string representation of a number into an integer (similar to `atoi`), handling optional leading whitespace, signs (+/-), and overflow conditions.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.