LeetCode 171 Excel Sheet Column Number 题解
1.题目:
Given a column title as appear in an Excel sheet, return its corresponding column number.
For example:
A -> 1
B -> 2
C -> 3
...
Z -> 26
AA -> 27
AB -> 28
题意:
26进制
2.解题思路:
26进制
3.代码
1 |
|
很高兴遇见你~
Given a column title as appear in an Excel sheet, return its corresponding column number.
For example:
A -> 1
B -> 2
C -> 3
...
Z -> 26
AA -> 27
AB -> 28
题意:
26进制
26进制
1 |
|