Strange upgrade - 8. String to integer (atoi)

Title Description Please realize one   myAtoi(string s)   Function to convert a string into a 32-bit signed integer (similar to the atoi function in C/C + +). ​ function   The algorithm of myAtoi(string s) is as follows: ​ Read in the string and discard useless leading spaces Check whether the next character (assuming it has n ...

Posted by AL123 on Fri, 26 Nov 2021 18:20:30 -0800