Excel Sheet Column Number | Leetcode 171 | Day-22 | String

preview_player
Показать описание
Time Complexity : O(n)
Space Complexity : O(1)


Please like, share and subscribe if you found the video useful. Feel free to ask in comments section if you have any doubts. :)

#DataStructuresAndAlgorithms
#ExcelSheetColumnNumber
#interviewpreparation
Excel Sheet Column Number solution
Excel Sheet Column Number Leetcode
Excel Sheet Column Number C++
Excel Sheet Column Number Java
Excel Sheet Column Number Python

🔥🔥🔥🔥👇👇👇

Checkout the series: 🔥🔥🔥
LIKE | SHARE | SUBSCRIBE 🔥🔥😊
Рекомендации по теме
Комментарии
Автор

Great explanation, this was mathy which I didn't expected, but now that I saw the formula I passed the leetcode's question in JS

thuglifeinventor
Автор

Thanks a lot ayushi super easy approach.

AbhishekSingh-fcrx
Автор

You explanation is very simple..Everyone can understand.You are doing great job..keep it🙏

I_nick_
Автор

Thanks a lot for making us all consistent! 😊

ChandraShekhar-bycd
Автор

Result += LetterNumber * totalChar ^ (totalChar - currentLetterIndex)

2 * 26 ^ 1 + 1 * 26 ^ 0 = 53 = BA

santhoshsam
Автор

Can you tell me why "zz" is 702 not 676 .... I'm a bit confused here....

jatinsingh
Автор

Instead of using
columnTitle.size() USE columnTitle.size()
And for
columnTitle[i] USE
columnTitle.charAt(i)

cap_
Автор

columnTitle.charAt(i) not columnTitle[I]

onemusic