Question: https://leetcode.com/problems/excel-sheet-column-title/
Question Name: Excel Sheet Column
1 2 3 4 5 6 7 8 9 | class Solution: # @return a string def convertToTitle(self, num): result = [] while num != 0: num -= 1 result.append(chr(ord("A") + (num % 26))) num //= 26 return "".join(result[::-1]) |