Decode String | Leet code 394 | Theory explained + Python code

preview_player
Показать описание
This video is a solution to Leet code 394, Decode String. I explain the question, go over how the logic / theory behind solving the question and finally solve it using Python code.

Comment below if you have a better solution to this problem!

Let me know if you have any feedback and don't forget to subscribe for more videos!

Time stamps:
0:00 Question
3:02 Solution Explained
10:43 Python Code

Code:

More leetcode questions solved:
Рекомендации по теме
Комментарии
Автор

Omg I just wanted to say thank you so much for making this video.
I could not understand this problem at ALL from countless other videos / solutions, but your approach and explanation was crystal clear.
I actually was given this exact problem for one round in an interview a week ago for a big fintech company, and ended up passing and actually getting the offer!

I really wanted to express my thanks and to let you know how much you are helping others
Please keep making these videos 🔥

Steven-xxik
Автор

This is such a cool explanation.. great job Anish! Got the cue on how to use the multiplication factors and link them to the right string

Apurvsankhyadhar
Автор

Can you solve "Meeting Rooms II - LeetCode 253" question, please. I really like the way you explain and your approach.

monalisasha
Автор

Can someone compare iterative solution vs recursive solution, in terms of time complexity and suggest which one is better approach?

vai-pt
Автор

Nice explanation. What is the time & space complexity?

salimzhulkhrni
Автор

Can you explain the time and space complexity as well?

nitinkanagaraj
Автор

why are you using an empty array ["", 1] you can directly return the last value without multiplying by 1 right.

gaddesaishailesh
join shbcf.ru