Easy · Math
Base 26 Encoding
Given a positive integer n, return its Excel column title (1 → "A", 26 → "Z", 27 → "AA", 28 → "AB").
Examples
Example 1
n = 28 → ABOutput: "AB"
Example 2
n = 701 → ZYOutput: "ZY"
Rebuild it in the studio
Core interview problems are free with a full runner and lessons; Pro opens the complete library.