168. Excel Sheet Column Title
Practice Excel Sheet Column Title for free on NudgeCode: Easy, Array & Hash Table pattern. Write it in Python or JavaScript, run the tests in your browser, and ask for a hint when you are stuck.
Spreadsheet columns are labelled A, B, ..., Z, then AA, AB, ..., AZ, BA, and so on. Given a column number (starting at 1), return its label.
Example
columnNumber = 1 -> "A"
columnNumber = 28 -> "AB"
columnNumber = 701 -> "ZY"
Constraints
- 1 <= columnNumber <= 2^31 - 1