Posted on September 21, 2020September 21, 2020 Description Submission class Solution { public: int titleToNumber(string s) { int res = 0; for(int i = 0; i < s.size(); ++i) { res *= 26; res += (s[i] - 'A' + 1); } return res; } }; By Bill0412 Easy LeetCode