Leetcode Decode Ways || Intuition + Code + Explanation

  Рет қаралды 16,052

Code with Alisha

Code with Alisha

Күн бұрын

Пікірлер: 37
@vishnuvardhanreddy4841
@vishnuvardhanreddy4841 2 жыл бұрын
Mam thank you so much your dp lectures are better than many paid courses. U r explanation is so simple and easy to understand 😊😊
@vishnuvardhanreddy4841
@vishnuvardhanreddy4841 2 жыл бұрын
Please don't stop making lectures😊
@VinodMuda
@VinodMuda 2 жыл бұрын
Nice explanation! Thank you. Modified your code(Java) for constant space: class Solution { public int numDecodings(String s) { if(s.isEmpty() || s.charAt(0) == '0') return 0; int twoStepsBack = 1; int oneStepsBack = 1; for(int i = 2; i = '0' && currentChar
@AbdulRehman-ui3nj
@AbdulRehman-ui3nj Жыл бұрын
I paused the video at 18:39 to subscribe your channel, thanks for the easy explanation
@keerthana1216
@keerthana1216 Жыл бұрын
Clear explanation,thank you. Also your videos are very crisp and clear ,please make more vidoes,finding quite helpful.
@SHANMUKHASHARMA-s6h
@SHANMUKHASHARMA-s6h Жыл бұрын
Very Well Explained Thank you very much
@Rajuraju-y9o3r
@Rajuraju-y9o3r Жыл бұрын
Good explanation with different cases
@nivedithabaskaran1669
@nivedithabaskaran1669 2 жыл бұрын
This was such a clear explanation video. Thank you!
@biswajitsaha6773
@biswajitsaha6773 Жыл бұрын
Great explanation ma'am, but I think there is a small mistake in it, we can decode "110" in 1 way only (1,10), not 2 ways [21:30] 1,1,0 is not a valid decoding
@dhruvgoel25
@dhruvgoel25 2 ай бұрын
Nice explanation 👍
@himanshupandey9303
@himanshupandey9303 3 жыл бұрын
There was a movavi editor plus banner which flashed in intervals in the video.
@sakshamgupta304
@sakshamgupta304 Жыл бұрын
Hi @code with Alisha, it was such a nice explanation, you efforts were visible in video. However there was a cut in video when you just started tabulation part and then suddenly you lowered your voice, was that because you were recording at night ?. haha 😁, if that was so, that was such a cute moment 🤣.
@TheElevatedGuy
@TheElevatedGuy 2 жыл бұрын
Clear & Nice explanation! Thank you very much ma'am!
@pankajchadda1780
@pankajchadda1780 2 жыл бұрын
Awesome explanation 😁 Thank you..
@shashankpal8888
@shashankpal8888 3 жыл бұрын
Hey, Can you make a video, how your coding journey start? Where to start? Which platform to do first?
@095udaykiran6
@095udaykiran6 2 жыл бұрын
Nice Explaination ,Thank You mam 🙏
@bikkichoudhary8565
@bikkichoudhary8565 2 жыл бұрын
Bahut mast samjhate ho aap didi😃
@vikaspeddinti52
@vikaspeddinti52 2 жыл бұрын
great explanation thanks 😊
@smile8510
@smile8510 2 жыл бұрын
awesome explanantion just solved it after getting the intuition
@Asmithaayyanath
@Asmithaayyanath 6 ай бұрын
very useful... thank you
@heenamittal8621
@heenamittal8621 2 жыл бұрын
Excellent Explaination !! Thanks !:)
@josephcs1235
@josephcs1235 Жыл бұрын
Great video
@pranjalshinde1586
@pranjalshinde1586 2 жыл бұрын
getting memory limit exceeded while using recursion + memoization
@beinghappy9223
@beinghappy9223 Жыл бұрын
Amazing explanation didi
@lalitagarwal9155
@lalitagarwal9155 2 жыл бұрын
Ma'am please tell that can I solve this question using BFS or not? I write a code myself using queue for BFS but that's running only for few cases so please tell..
@raj_kundalia
@raj_kundalia Жыл бұрын
You mentioned that you'd tell about why dp[0] = 1. Could you explain that, please?
@tanusharma0801
@tanusharma0801 Жыл бұрын
In simpler terms, when you have an empty string (length 0), there is exactly one way to decode it, and that is by doing nothing. So, dp[0] is set to 1 to represent this one way.
@aakashgoswami2356
@aakashgoswami2356 2 жыл бұрын
why you have taken previous two state i.e dp[i] += dp[i-2] . why dp[i-2] ? And why you have take dp[0] = 1;
@shivanshgupta1509
@shivanshgupta1509 2 жыл бұрын
ThankYou mam!!!
@barathnatarajan8566
@barathnatarajan8566 2 жыл бұрын
Thank you
@vishalagarwal9392
@vishalagarwal9392 Жыл бұрын
except striver , no youtuber can write recursive solution by themselves
@imsubratabiswas
@imsubratabiswas 7 ай бұрын
why are you thinkinng like this man ??? 😂😂
@jayasatwik1046
@jayasatwik1046 2 жыл бұрын
class Solution { public: int numDecodings(string s) { int i,n=s.length(); if(s.length()==0||s[0]=='0') return 0; vectordp(n+1,0); dp[0]=1; dp[1]=1; for(i=2;i='1'&&s[i-1]='0'&&s[i-1]
@HaiderAli-bq8hf
@HaiderAli-bq8hf Жыл бұрын
put 6 in place of 9
@malkeetsapien4852
@malkeetsapien4852 2 жыл бұрын
🙌🏻
@ramashishrural
@ramashishrural 2 жыл бұрын
Great work 👏 check your LinkedIn request 👏
@shyren_more
@shyren_more 2 жыл бұрын
great explanation, thanks
Coding Interview Problem - Decode Ways
13:53
Knapsack
Рет қаралды 19 М.
Decode Ways - LeetCode 91 - Python
12:12
DEEPTI TALESRA
Рет қаралды 1 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Путин ответил на ультиматум Трампа
7:25
Diplomatrutube
Рет қаралды 1,5 МЛН
91. Decode Ways | 3 Ways
27:30
Aryan Mittal
Рет қаралды 3,7 М.
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН