LeetCode 168. Excel Sheet Column Title
题目描述:
Given a positive integer, return its corresponding column title as appear in an Excel sheet.
For example:
1
2
3
4
5
6
7 1 -> A
2 -> B
3 -> C
...
26 -> Z
27 -> AA
28 -> AB
按照26进制来处理, 不过由于是从1而不是0开始的, 所以要对Z单独处理.
1 | class Solution { |