Leetcode Decode Ways || Intuition + Code + Explanation

  Рет қаралды 15,780

Code with Alisha

Code with Alisha

Күн бұрын

Пікірлер: 37
@vishnuvardhanreddy4841
@vishnuvardhanreddy4841 Жыл бұрын
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 Жыл бұрын
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
@SHANMUKHASHARMA-s6h
@SHANMUKHASHARMA-s6h Жыл бұрын
Very Well Explained Thank you very much
@keerthana1216
@keerthana1216 Жыл бұрын
Clear explanation,thank you. Also your videos are very crisp and clear ,please make more vidoes,finding quite helpful.
@AbdulRehman-ui3nj
@AbdulRehman-ui3nj 11 ай бұрын
I paused the video at 18:39 to subscribe your channel, thanks for the easy explanation
@nivedithabaskaran1669
@nivedithabaskaran1669 2 жыл бұрын
This was such a clear explanation video. Thank you!
@Rajuraju-y9o3r
@Rajuraju-y9o3r Жыл бұрын
Good explanation with different cases
@TheElevatedGuy
@TheElevatedGuy 2 жыл бұрын
Clear & Nice explanation! Thank you very much ma'am!
@dhruvgoel25
@dhruvgoel25 8 күн бұрын
Nice explanation 👍
@shashankpal8888
@shashankpal8888 3 жыл бұрын
Hey, Can you make a video, how your coding journey start? Where to start? Which platform to do first?
@himanshupandey9303
@himanshupandey9303 3 жыл бұрын
There was a movavi editor plus banner which flashed in intervals in the video.
@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
@pankajchadda1780
@pankajchadda1780 2 жыл бұрын
Awesome explanation 😁 Thank you..
@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 🤣.
@smile8510
@smile8510 2 жыл бұрын
awesome explanantion just solved it after getting the intuition
@095udaykiran6
@095udaykiran6 Жыл бұрын
Nice Explaination ,Thank You mam 🙏
@heenamittal8621
@heenamittal8621 2 жыл бұрын
Excellent Explaination !! Thanks !:)
@Asmithaayyanath
@Asmithaayyanath 4 ай бұрын
very useful... thank you
@vikaspeddinti52
@vikaspeddinti52 2 жыл бұрын
great explanation thanks 😊
@bikkichoudhary8565
@bikkichoudhary8565 Жыл бұрын
Bahut mast samjhate ho aap didi😃
@pranjalshinde1586
@pranjalshinde1586 2 жыл бұрын
getting memory limit exceeded while using recursion + memoization
@josephcs1235
@josephcs1235 Жыл бұрын
Great video
@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..
@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;
@raj_kundalia
@raj_kundalia Жыл бұрын
You mentioned that you'd tell about why dp[0] = 1. Could you explain that, please?
@tanusharma0801
@tanusharma0801 11 ай бұрын
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.
@shivanshgupta1509
@shivanshgupta1509 2 жыл бұрын
ThankYou mam!!!
@vishalagarwal9392
@vishalagarwal9392 Жыл бұрын
except striver , no youtuber can write recursive solution by themselves
@imsubratabiswas
@imsubratabiswas 5 ай бұрын
why are you thinkinng like this man ??? 😂😂
@barathnatarajan8566
@barathnatarajan8566 2 жыл бұрын
Thank you
@jayasatwik1046
@jayasatwik1046 Жыл бұрын
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
МЕНЯ УКУСИЛ ПАУК #shorts
00:23
Паша Осадчий
Рет қаралды 5 МЛН
小路飞还不知道他把路飞给擦没有了 #路飞#海贼王
00:32
路飞与唐舞桐
Рет қаралды 87 МЛН
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 54 МЛН
Coding Interview Problem - Decode Ways
13:53
Knapsack
Рет қаралды 19 М.
Decode Ways | LeetCode 91 | C++, Java, Python
22:22
Knowledge Center
Рет қаралды 38 М.
Decode String - Leetcode 394 - Python
16:26
NeetCode
Рет қаралды 92 М.
How I Failed the Google Coding Interview (and lessons I learned)
14:24
91. Decode Ways | 3 Ways
27:30
Aryan Mittal
Рет қаралды 3,4 М.
Decode Ways - Dynamic Programming - Leetcode 91 - Python
15:25
МЕНЯ УКУСИЛ ПАУК #shorts
00:23
Паша Осадчий
Рет қаралды 5 МЛН