Excel Sheet Column Title (Leetcode 168) Solution in Java | Excel Sheet Column Title | Leetcode 168

preview_player
Показать описание
Excel Sheet Column Title Leetcode Solution in Java (168)

In this video we are going to discuss the leetcode problem number 168 (Excel Sheet Column Title) through java.
We are also discuss how to solve the Excel Sheet Column Title using java programming language.

Excel Sheet Column Title LOGIC - They will give you an number. You need to return a string of Excel Sheet Column Title.
For This problem, you can easily solve using some mathematical operations.

Given an integer columnNumber, return its corresponding column title as it appears in an Excel sheet.



Example 1:

Input: columnNumber = 1
Output: "A"
Example 2:

Input: columnNumber = 28
Output: "AB"
Example 3:

Input: columnNumber = 701
Output: "ZY"

#leetcode
#excelsheetcolumntitle
#leetcodesolution
Рекомендации по теме
Комментарии
Автор

I would recommend using the string builder and then appending the result to it as it will run faster.

mrtblackmann
welcome to shbcf.ru