← All problems

Excel Sheet Column Title/Number

Easy mathstrings LeetCode ↗
Convert between 1-indexed column numbers and titles (A..Z, AA...).

Hints (0/3 revealed)

Log in to reveal hints progressively.

Complexity

Time O(log n), Space O(1)

Common pitfalls

  • Plain base-26 (off by one on Z->AA)
  • Direction confusion

Your solution

Log in to save your code and track progress.