4 line Solution using stringstream in c++


#1
int Solution::atoi(const string A) {
stringstream ss;
ss<<A;
int x ;
ss>>x;
return x;

}