Can we use stringstream here 🙄


#1

Its soln is just 4 line :roll_eyes:

int Solution::atoi(const string A) {
int r = 0;
stringstream ss(A);
ss >> r;
return r;
}