class Solution { public: static int StrToInt(string str) { int i = 0; vector<char> ch; set<char> charset = {'1','2','3','4','5','6','7','8','9'}; /*if (!(str[0] >= 48 || str[0] <= 57)||str[0]!='-'||str[0]!='+') { return 0; ...