Тёмный

Decode Strings (LeetCode 394) | Full solution with animations and examples | Study Algorithms 

Nikhil Lohia
Подписаться 47 тыс.
Просмотров 26 тыс.
50% 1

Опубликовано:

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 67   
@ananyadas3257
@ananyadas3257 Год назад
There is a comment issue in your pseudocode...The third condition says if there is "[". It should be "]"
@nikoo28
@nikoo28 Год назад
Thanks for the correction. You are right.
@unknownman1
@unknownman1 10 месяцев назад
You seem like a friend with whom everyone wants to spend more time. Nice explanation btw.
@nikoo28
@nikoo28 10 месяцев назад
this comment is full of warmth..thanks!! 😄
@rhythmbhandari8549
@rhythmbhandari8549 Год назад
Your explanations were clear and easy to follow, and the animations and examples you provided really helped solidify my understanding of the problem.
@shachisinghal8856
@shachisinghal8856 8 месяцев назад
I smile, when i see that a Q. has been covered by you. Thank you sir.
@nikoo28
@nikoo28 8 месяцев назад
🤗
@shwetagupta8721
@shwetagupta8721 7 месяцев назад
wow nikhil, you explained so well, far better than many of the paid courses, loved your teaching skills.
@S3aw0lf
@S3aw0lf 7 месяцев назад
After watching the video I had to work on it myself and i finally figured the code. Thanx for the video
@shubhammanecr7
@shubhammanecr7 7 месяцев назад
Commendable explanation sir!! I just can say one line - Why fear when Nikhil Lohia is here.
@nikoo28
@nikoo28 6 месяцев назад
🤘
@MrRahulmalik
@MrRahulmalik 10 месяцев назад
you are my new fav instructor after sumeet malik, keep making more videos regularly! thanks alot.
@nikoo28
@nikoo28 10 месяцев назад
so happy you feel this way
@shaiksameer9659
@shaiksameer9659 Месяц назад
Your explanation is so clear that I have no need to watch another video on this problem. However Nikhil ,how to solve if the number is more than 9 i..e it may be more than 1 character to ad to the number stack ?
@sonicserenity9498
@sonicserenity9498 5 месяцев назад
Hey Nikhil, Thank you Man, You explain things in very easy way, keep it up
@motivationalquotes8545
@motivationalquotes8545 11 месяцев назад
Very well explained I don't understand why their is less like to video
@nikoo28
@nikoo28 11 месяцев назад
i dunno either 😂
@jatin_9911
@jatin_9911 3 дня назад
thank you sir your explanation is great 🔥 🔥
@prathameshpawar985
@prathameshpawar985 Год назад
Your logic explaination is best , keep making such videos :)
@nikoo28
@nikoo28 Год назад
trying my best everyday :)
@vineetkumar2899
@vineetkumar2899 Год назад
I am a big fan of your teaching Skills
@gitansh194
@gitansh194 Месяц назад
such a clean explanation .............thanku sir❤❤
@sukanyaghosh24
@sukanyaghosh24 11 месяцев назад
What an amazing explanation sir, thank you so much ❤️
@lalanabiridi8358
@lalanabiridi8358 10 месяцев назад
this man is a goat
@TalhaTabrez7
@TalhaTabrez7 7 месяцев назад
keep up the good work!!
@user-cg3tw7tj1p
@user-cg3tw7tj1p Год назад
You were phenomenal. Hats off sirrr!!!
@nikoo28
@nikoo28 Год назад
thanks for your kind words
@helloworld4788
@helloworld4788 3 месяца назад
thank u so so much for the explanation
@pratibhaverma2063
@pratibhaverma2063 8 месяцев назад
Thank you sir.Very handy approch and explanation.
@nikoo28
@nikoo28 7 месяцев назад
You are welcome
@prasannavenkkatesh1192
@prasannavenkkatesh1192 3 месяца назад
do we need 2 stacks?
@abhaykumarsingh3884
@abhaykumarsingh3884 3 месяца назад
Very good explanation..
@jagan2350
@jagan2350 Год назад
Your videos are awesome 🔥
@iamnoob7593
@iamnoob7593 Год назад
Brilliant and Intuitve.
@ousmanbah10
@ousmanbah10 3 месяца назад
best explanations
@nikoo28
@nikoo28 3 месяца назад
Keep watching
@arpanchakraborty9874
@arpanchakraborty9874 Месяц назад
Thank you
@tusharrastogi7490
@tusharrastogi7490 Год назад
great explanation :)
@tanyatanya3100
@tanyatanya3100 Год назад
nice explanation!
@kuldeepdiwakar1506
@kuldeepdiwakar1506 8 месяцев назад
Explanation is too simple
@dampdigits.69
@dampdigits.69 8 месяцев назад
thanks
@thanhnguyenduy78
@thanhnguyenduy78 Год назад
nice!!!!!!!!!
@MsProtestante
@MsProtestante Год назад
Hi! Congrats for your solution! I am struggling to understand this bit of code k = (k * 10) + (c - '0') I print line by line with SYSO but I'm still no able to get it. When printing I get the following : when k = 1 (k * 10): 10 (c - '0'): 1 this is k: 1 Why k = (k * 10) + (c - '0') ends up with 1? As (k * 10) = 10 and (c - '0')= 1 why k is not 11? Could you please kindly clarify it?
@nikoo28
@nikoo28 Год назад
The value of k = 0, not 1. :) Also when we push in the stack, once again we change it to 0.
@phucphamthanh642
@phucphamthanh642 Год назад
This solution doesn't work if the integer has more than one digit. e.g: 11[ab2[c]de].
@nikoo28
@nikoo28 Год назад
It will work..for your test case the output will be abccdeabccdeabccdeabccdeabccdeabccdeabccdeabccdeabccdeabccdeabccde
@kolawoleabdulrahman
@kolawoleabdulrahman 11 месяцев назад
it doesn't work for me as well.
@sakibx0218
@sakibx0218 4 месяца назад
Why we need to add another stack. Since get got first bracket that means if you say stack.peek() you will get the value. Its just waste of memory
@nikoo28
@nikoo28 4 месяца назад
The space complexity still remains the same O(n)
@atharvdeshmukh8192
@atharvdeshmukh8192 10 месяцев назад
how to handle multidigit number?
@nikoo28
@nikoo28 9 месяцев назад
the solution handles a multi-digit number, check the github link in description :)
@user-ry8gz4om4e
@user-ry8gz4om4e Год назад
you are osm thank you
@11shivamAhir00
@11shivamAhir00 Год назад
thanks sir
@deepakffyt2844
@deepakffyt2844 Год назад
Abhi awaj bahut slow aaa rahi
@ridj41
@ridj41 3 месяца назад
the code is very complex and is not easy to understand after watching this video tbh, might have made the soln just like the code
@abhishekthakur7578
@abhishekthakur7578 Год назад
bhai isse accha toh mike mat he laga
@nikoo28
@nikoo28 Год назад
Fixed those issues in my latest videos…thanks for the feedback :)
@acxd
@acxd Год назад
can you do it using 1 stack!
@iamnoob7593
@iamnoob7593 Год назад
The solution here is more intutive. I would prefer using 2 stacks.
@ArunKumar-yq9rs
@ArunKumar-yq9rs 2 месяца назад
100[leetcode] what will this give ;)0)
@tech-red24
@tech-red24 5 месяцев назад
bha sound quality bhtttttttttttttttttttttttttt hi gandiiii h ...mic cgange kro phle to aap
@sapworkshop
@sapworkshop 11 месяцев назад
Bro try to speak loudly
@nikoo28
@nikoo28 11 месяцев назад
check my latest videos, if you still find the issue
@avinashmv9686894578
@avinashmv9686894578 Месяц назад
Easy to understand. Thank you.
@subee128
@subee128 8 месяцев назад
Thank you
Далее
Что думаете?
00:54
Просмотров 790 тыс.
LeetCode Decode String Solution Explained - Java
10:52
Decode String - Leetcode 394 - Python
16:26
Просмотров 85 тыс.
Cursor Is Beating VS Code (...by forking it)
18:00
Просмотров 70 тыс.