# Leetcode 168 - Excel sheet column title

`Note:`

- This seems like an easy question but with traps.
- Normally, when we convert
`decimal`

into other`n-ary`

. We do between`[0, x)`

, and we add`1`

to the prev digit when we hit`x`

. - Here, we are operating from
`1`

to`26`

. Where did`0`

go? - Take
`26`

for example:`26 % 26 === 0`

. So we append`z`

to the end.- We should end here, but
`26 / 26 === 1`

?? - No, don’t keep going. Let’s end it here coz we all know
`26 === Z`

. - Make
`num -= 26`

when the remainder is`0`

!!

`Question:`

Given an integer columnNumber, return its corresponding column title as it appears in an Excel sheet.

For example:

1 | A -> 1 |

`Example:`

1 | Input: columnNumber = 701 |

`Code:`

1 | /** |