Strings · Coding problem
Excel Column Title
A free coding problem from the String Symbol Mapping skill. Read it here, then solve it in the app in Java or Python.
- Easy
- Coding problem
- Free
- Java and Python
The problem
Spreadsheet columns are labeled A, B, ..., Z, AA, AB, ..., AZ, BA, ..., ZZ, AAA, ... Given a column number n (A is 1), return its title.
Example
Input: 53
Output: BA
Input: 1000
Output: ALL
Constraints
1 <= n <= 2^31 - 1
How it's graded
- Run checks your code against the examples. Submit also runs a hidden suite in four groups - basic cases, edge cases, random inputs and performance tests at the size limit - and shows which groups pass, never the hidden inputs.
- Stuck? Hints come in four steps, from a nudge to a code skeleton, each costing part of the points.
- Once you pass, you see the approaches from brute force to optimal, and where your solution lands among them.
More problems in String Symbol Mapping
Solve it Excel Column Title free
No card needed. Lessons, practice questions and easy problems are free forever.
Free plan, no card · 7-day Pro trial · Cancel anytime