Shifting Letters | Leetcode 848 | Live coding session

preview_player
Показать описание
Here is the solution to "Shifting Letters" leetcode question. Hope you have a great time going through it.

1) 0:00 Explaining the problem out loud
2) 1:10 Algorithm walkthrough
3) 2:00 Solution approach
4) 4:40 Coding

For discussion/feedback

PS : Please increase the speed to 1.25X
Рекомендации по теме
Комментарии
Автор

I don't understand why you did this :
(str[i] - 'a' + shift)%26 + 'a')

when you have already done (shift + shift[i])%26 in the above line.
I mean why have done %26 twice?

elasingh
Автор

why are you adding it doing (str[i]-'a'+shift)%26 and adding this to a

pranayghosh
welcome to shbcf.ru