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
Open every published interview problem, solution, scene, and memory room free, with no account.