Excel Sheet Column Number
https://leetcode.com/problems/excel-sheet-column-number/description/
Related to questionExcel Sheet Column Title
Given a column title as appear in an Excel sheet, return its corresponding column number.
Thoughts
26进制转换. 只是每次要多加1因为它要的不是0~25而是1~26.
Code
Analysis
时间复杂度O(N), N为字符串长度. 空间O(1).
Last updated
Was this helpful?