Загрузка...

Coding Ninja's Easy Coding Problem | Excel Sheet | Part-2 using Java | 22 May 2024 | String |

Code 360 by Coding Ninja's | Naukri Code 360
Easy Coding Problem of the day
22 May 2024
Problem :Excel Sheet | Part-2 using Java
Level : Easy

------------------------------

You may also visit my another playlists :

👉 LeetCode :
https://www.youtube.com/playlist?list=PLFKSskMOGy_smboxEBExyDNUjPl2-H9m7

👉 Geeks-for-Geeks :
https://www.youtube.com/playlist?list=PLFKSskMOGy_sdf5j2Ue7CRKTBp6AyjmP3

----------------------------------------------

Stay connected with me on social media for more updates and behind-the-scenes content !

You can find me on
Instagram Profile :
https://www.instagram.com/_ganesh_p09

LinkedIn Profile :
https://www.linkedin.com/in/ganesh-prasad09

-----------------------------------------------------

Description about the problem as follows :

You are given a string STR representing the column title in an Excel Sheet. You need to find its corresponding column number.

For example: A corresponds to 1, B to 2, C to 3, … , Z to 26, AA to 27, .. and so on.

Sample Input 1:

3
A
AB
F

Sample Output 1:

1
28
6

Explanation of Input 1:

The first test case, STR = “A”. This corresponds to column number 1.

The second test case, STR = “AB”. This corresponds to column number 28.

The third test case, STR = “F”. This corresponds to column number 6.

Sample Input 2:

3
AZ
COD
ZZZ

Sample Output 2

52
2422
18278

-----------------------------------------------

#codingninjaseasycodingproblemsolution
#codingninjaseasycoding
#codingninjaseasycodingproblemsolutionusingjava
#excelsheetpart2usingjava
#codingninjas
#naukricode360
#22may204codingninjasproblemsolution
#java #excelsheetpart02problemsolution

Видео Coding Ninja's Easy Coding Problem | Excel Sheet | Part-2 using Java | 22 May 2024 | String | канала My Learning Hub
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять