Spreadsheet Column Names
Talk it through out loud with your AI coach.
The problem
- medium
- Pro
Spreadsheet columns are named A to Z, then AA, AB and so on up to AZ, then BA, and after ZZ comes AAA. Given a column number, starting from one for A, return its name, and then explain how to turn a name back into a number. For example, twenty-seven is AA and fifty-two is AZ.
What a strong answer covers
- How this naming system differs from an ordinary number base.
- A step-by-step conversion from number to letters that handles Z correctly.
- Testing the method on the boundary cases.
- The conversion in the other direction and the cost of each.
Common mistake: Treating it as normal base twenty-six, which turns twenty-six into something like A followed by a zero digit instead of Z.
Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.
Practise it out loud