LeetCode 168 Excel Sheet Column Title

LeetCode 168 Excel Sheet Column Title Problem

Download Code
class Solution:
    def convertToTitle(self, n: int) -> str:
        res = ""
        while n > 0:
            n -= 1
            res = chr(65 + n % 26) + res
            n //= 26
        return res
Download Excel Sheet Column Title.py

List of all Excel Sheet Column Title problems

Leetcode 168 Excel Sheet Column Title problem solution in python3 with explanation. This is the best place to expand your knowledge and get prepared for your next interview.

Feedback is the most important part of any website.

If you have any query, suggestion or feedback, Please feel free to contact us.