problem
sum( (s[i]-'A'+1)*pow(26, i) )
code
class Solution {public: int titleToNumber(string s) { int n=0; int ans = 0; while(n
1. ;
本文共 213 字,大约阅读时间需要 1 分钟。
problem
sum( (s[i]-'A'+1)*pow(26, i) )
code
class Solution {public: int titleToNumber(string s) { int n=0; int ans = 0; while(n
1. ;
转载于:https://www.cnblogs.com/happyamyhope/p/10088693.html