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