leetcode 168 Excel Sheet Column Title

Given a positive integer, return its corresponding column title as appear in an Excel sheet.
For example:
1 | 1 -> A |
1 | class Solution { |
- Consider it as a digit transform problem.
- Notice that the first char is
A
which corresponse to number0
, so there should ben-1
.