Skip to content

Latest commit

 

History

History
13 lines (13 loc) · 273 Bytes

171.md

File metadata and controls

13 lines (13 loc) · 273 Bytes

#171. Excel Sheet Column Number 题目链接

int titleToNumber(char* s) {
    int i = 0;
    int line = 0;
    for(i; s[i]!='\0'; i++)
    {
        line = line * 26 + s[i]-'A'+1;
    }
    return line;
}