19 Longest common subsequence Recursive

  Рет қаралды 297,327

Aditya Verma

Aditya Verma

Күн бұрын

Пікірлер
@shaunakdas4921
@shaunakdas4921 4 жыл бұрын
bro, you will go way further if you take the path of teaching programming. I have seen alot of tutorials ,some paid and some free content in youtube. But no one teaches programming like you do. It's because you are teaching how to think like a coder which is very rare. Keep it up.
@TheAdityaVerma
@TheAdityaVerma 4 жыл бұрын
Thanks brother, Do subscribe and share, that keeps me motivated to do more !!
@yashgarg8906
@yashgarg8906 3 жыл бұрын
@Jacob Noe fuck you scammers, google shows your scams
@vivekbaghela7572
@vivekbaghela7572 3 жыл бұрын
@@TheAdityaVerma bro you should mention in every vid that you have mistaken top-down for bottom-up, this will help your channel grow more, bcz jo bina recommendation aaye honge wo log vid shayad puri hi na dekhe soche ki galat pdha rha h, ik unka bad luck. But you must add a frame or something else in each vid about this correction!
@sachinarora6682
@sachinarora6682 2 жыл бұрын
Can anyone explain why we increase the length by 1 when we have common character in both the string? I mean there might be a case wherin the LCS doesn't have the same character but we included it in our solution
@Udzial
@Udzial 2 жыл бұрын
@@sachinarora6682 because we need the count like how much is common. so if there is a match we have to count somewhere to get the count as 4. if there is no match it will not come inside that condition and answer would remain 0 hope you are talking the one explained at #23:11
@ankitsoni3388
@ankitsoni3388 4 жыл бұрын
Bhai currently I am working at one of the MNC but one thing I learned that to survive in IT sector you just cannot stop practicing DS Algo, I always was a little weak in recursion and had no idea about DP. Even during placement season I somehow memorized first 20 Standard DP questions from geeks, but since the day I started watching your dp playlist, I must admit my life has become easier, recursion and DP feels too easy. Kudos to you . Thanks a lot.
@TheAdityaVerma
@TheAdityaVerma 4 жыл бұрын
Thanks brother, If you like the content please do share where ever you feel right to help the channel grow !!
@shireenabraham8627
@shireenabraham8627 4 жыл бұрын
Hands down best DP tutorial ! I'm so glad the number of subscribers are increasing everyday
@TheAdityaVerma
@TheAdityaVerma 4 жыл бұрын
I am glad you think so !!
@soumikroy4600
@soumikroy4600 4 жыл бұрын
Brother you'r red coder in teaching programming.
@sachinarora6682
@sachinarora6682 2 жыл бұрын
Can anyone explain why we increase the length by 1 when we have common character in both the string? I mean there might be a case wherin the LCS doesn't have the same character but we included it in our solution
@ABCD-gn5uw
@ABCD-gn5uw 2 жыл бұрын
@@sachinarora6682 we would only increase that if there's a match. because if theres a match than definitely we would have something in common. if there's no match we will return for the rest of the substrings.
@prithvirajchavan9186
@prithvirajchavan9186 2 жыл бұрын
@@sachinarora6682 we increase length by 1 as we know the first common character from the end will definitely be in the longest common subsequnce. This is due to the fact that we are looking at it from the end and not the beginning. So no matter what the length of the LCS is between x[0....n-2] and y[0.....m-2], if you add the last common character among the strings (which is x[n-1]) it will create a longer LCS with length one greater than the previous LCS. I probably think you have mistaken subsequence for substring but by looking at your other comments, that doesnt seem to be the case. Just think of it like this -> Prefix substring of x[0...n-1] iis equal to x[0...n-2]. Let LCS of prefix substrings of x and y be of length L (assume it is the most optimal i.e longest subsequence). Now, if the suffix characters are equal (i.e x[n-1]==y[m-1]), then they can be added to the LCS of the prefixes to make a "longer" LCS and this "longer" LCS will be the LCS of the full strings x and y. Simple as that :D
@deekshithanand3094
@deekshithanand3094 4 жыл бұрын
I genuinely request all others to watch his lectures by disabling Adblock(if u have any)!!! It's worth it supporting this channel! Its light years ahead of other lectures!!! Thanks a lot Bhai for the content!!!!!!
@TheAdityaVerma
@TheAdityaVerma 4 жыл бұрын
Brother, This comment is love ❤️ Its really hard to find guys like you these days. Respect !!
@bhavikmehta7193
@bhavikmehta7193 3 жыл бұрын
thanks for giving idea of using adblock
@ayushyadav4180
@ayushyadav4180 3 жыл бұрын
@@bhavikmehta7193 lol
@binod3204
@binod3204 3 жыл бұрын
I do the same... keep the ads coming :)
@ayushyadav4180
@ayushyadav4180 3 жыл бұрын
@@binod3204 binod spotted 😂😂
@0anant0
@0anant0 4 жыл бұрын
19 of 50 (38%) done! Very good explanation and revision of recursion steps. It has become so easy that I can tell what you are going to say next -- it means you taught very well in earlier videos :-)
@arnabmukherjee5840
@arnabmukherjee5840 3 жыл бұрын
i am following the lectures with you, bro
@taylorrocks45
@taylorrocks45 4 жыл бұрын
I could actually write the solution on my own by deriving from the concepts taught in Knapsack. Thank you so much for these tutorials. Wish you the success that you truly deserve.
@vikashprasad3279
@vikashprasad3279 4 жыл бұрын
Exactly that's what i was gonna write here😂😂 his teaching skill is awesome ❤️
@thisishunayn
@thisishunayn 4 жыл бұрын
Same DP seems easy now, but Ill have to work on recursion now.😂
@mrsmurf911
@mrsmurf911 2 жыл бұрын
@@thisishunayn Coin change problem: Minimum number of coins
@autismo1969
@autismo1969 2 жыл бұрын
agreed. he teaches in a way that you develop your intuition about dp
@easycoding591
@easycoding591 4 жыл бұрын
Now i got why you are SDE in Flipkart. You are awesome man.
@amitsamui4958
@amitsamui4958 3 жыл бұрын
Bhaiya ,your knapsack explaination is so good that I figured out this question in just 5min of starting.....thankyou bhaiya my thinking skill in recursion is increasing
@deepak-ly3ob
@deepak-ly3ob 11 ай бұрын
The guy who has made the dp easier is the Aditya Verma..... He has made the dp like halwa. Concepts are too easier to understand. Thank you Sir.
@brownchocohuman6595
@brownchocohuman6595 4 жыл бұрын
The pens you use sound so satisfying 😍 You should bring out your ASMR series too with them 😂
@techguybiswa
@techguybiswa 4 жыл бұрын
Hands down the best LCS tutorial on all of youtube!
@Vendettaaaa666
@Vendettaaaa666 4 жыл бұрын
I have never seen a neat technique like this to build recursive solutions! You should teach backtracking as well in the same way! I could always build recursive solutions by building up the whole call stack in tree format and then identify "choices" and "base cases", but I see how you can "abstract" this thinking out. Your technique is also better because sometimes, you might have a really huge call stack tree, depending on inputs you choose to come up with recursive solution.
@namanftw8641
@namanftw8641 4 жыл бұрын
shabd kam hai apke liye..... One of the best teacher!!!!!
@KeshariPiyush24
@KeshariPiyush24 3 жыл бұрын
Bought *GFG Paid DSA Self Paced* course it is slow as fuck, I will not say it is not good but man nothing compared to this.....You made me feel that I am able to do coding. Else I was feeling like a crap for almost a year now. Thankyou and love u brother.
@ajaykumar5873
@ajaykumar5873 2 жыл бұрын
Thank you very much sir . Sir main iss video ko 2022 mein dekh raha hoon, lekin jitna simplify karke aur thinking approach aapne bataaya hai, utna mujhe aur kahin nahin mila.
@sayendutta7308
@sayendutta7308 4 жыл бұрын
Thanks bro. I was so afraid of ds, algo. But because of your teaching I've overcome my fear to some extent. Keep growing!!!
@utsavraychaudhuri696
@utsavraychaudhuri696 4 жыл бұрын
You are the hero that we need, but don't deserve. Thank you so much for this content.
@payalpanjwani5332
@payalpanjwani5332 3 жыл бұрын
I seriously can't believe how easy it was to understand this just because of the previous videos. You rock man! 😎🙇‍♀️ Thanks a lot for such amazing videos. 😍🙌
@zaidmekrani8983
@zaidmekrani8983 2 жыл бұрын
the way you breakdown each and every key term is very good very few youtubers focus on this. 😍
@crosswalker45
@crosswalker45 2 жыл бұрын
Such a good video.. Dynamic programming is really hard and confusing concept. The way u explained the concepts, made it look easy
@sumeetrana604
@sumeetrana604 3 жыл бұрын
oh man, your teaching style is just too good, pls make the same content for trees and graphs too
@sourabhkumar6194
@sourabhkumar6194 4 жыл бұрын
I have read articles on LCS many times , but the way you taught LCS ..it was just great...keep it up big bro never stop.
@abhishekupadhyay4954
@abhishekupadhyay4954 4 жыл бұрын
I have never liked DP this much.I have solved most of the DP questions in these two days after watching your videos. Great work!!
@farooqueansari5406
@farooqueansari5406 2 жыл бұрын
with so much dedication and passion I have not seen anyone teach like this its like my elder bro is teaching me a big Thanks to you, mera dp ka daar dur karne ke lea
@pasitopasito1967
@pasitopasito1967 4 жыл бұрын
Bhai jaha tak.mene search kara hi dp youtube me ,,abhi tak aisa channel nahi mila ...thanks a lot
@lifewithniharikaa
@lifewithniharikaa 3 жыл бұрын
One day I want to solve questions like you do and with your clarity and understanding level.
@manojpandey7517
@manojpandey7517 4 жыл бұрын
Seriously man! this was the best explanation of LCS at KZbin!!! I watched other guys like Tushar, Jenny and sir Abdul Bari & was disappointed that they started explaining the algorithm straightaway instead of focusing on the approach. I personally hate those KZbinrs who start their videos by explaining the algorithm instead of building the approach to get that. You're gonna go heights with this way of explaining. The thing I like about you is your on-spot approach. No language bullshit etc...keep it up.
@hnsoni4
@hnsoni4 4 жыл бұрын
Abe ye dislike walo sharam karo thodi. Itna effort lagake ye video bana raha wo bhi world class, bc na to tum support karte ho ulta dislike kar dete ho. @Aditya Bhai keep it up. We will always support the good deed (And please Complete the series with missing and private videos. I came here after watching Recursion Playlist to iska recursion design karna was a piece of cake as you promised at the end of the playlist. Thank you very much. God bless you.
@jayshree7574
@jayshree7574 4 жыл бұрын
thanks a lot aditya, ab toh aage yeh problem khud hi hojaegi, all credit to you for this confidence!
@adityaprakash4955
@adityaprakash4955 4 жыл бұрын
keep doing this good work... please start graph also
@rafiqn2675
@rafiqn2675 4 жыл бұрын
Awesome teaching of coding there are many institutions that take huge 💰 but not teach even 20percent of ur quality teaching ....Bro U make course on compitative coding(complete) that ill make ur channel...grow in million believe me.....
@shivamjha5578
@shivamjha5578 3 жыл бұрын
Amazing teaching sir. Beyond appreciation. Please don't stop posting videos.
@AdityaSingh-ql9ke
@AdityaSingh-ql9ke 2 жыл бұрын
Ur explanation, of subsequence vs subarray, just shows that u r teaching from the ground up, without presuming that people will understand it anyways. Amazing 🤘🤘
@bhargav1811
@bhargav1811 2 жыл бұрын
Big Fan Sir!! apka "SUM UP" Style bahut achha he !!! itna achha ki sirf sum up bhi dekha to bhi sab kuch samaj a jaye!!! :)
@SHASHANKRUSTAGII
@SHASHANKRUSTAGII 3 жыл бұрын
Bhai knapsack dekhne ke bad and uspe questions krne ke bad, iski choice diagram, maine khud se banai and bad me tumhara video dekha to maine ye paya ki mera brain evolve ho chuka hia. bro. Bahut acha lag rha ma kasam Maza aagya
@himanshusrivastava448
@himanshusrivastava448 4 жыл бұрын
Bro, after watching your videos I feel I can also solve problems in DSA. Before , I was not able to solve a singel question in DP. Keep up the good work. Salute to you ... Make some videos on graph.
@pradeeppradyumna601
@pradeeppradyumna601 3 жыл бұрын
The best way of teaching using just pen and paper. Thanks for teaching!
@ankitdubey9310
@ankitdubey9310 3 жыл бұрын
this channel deserves all the love there is in the world!!
@ajeetpatel7991
@ajeetpatel7991 4 жыл бұрын
These Questions were like a nightmare to me, but because of you, I designed a top-down version of this question on my own. Thank you, bro.
@shairalsharma9065
@shairalsharma9065 3 ай бұрын
Discovered underrated channel . Thanks :)
@dayanandraut5660
@dayanandraut5660 3 жыл бұрын
I was struggling with LCS for quite a long time. You really cleared it up. Thanks. Keep it up. One feedback though. Please mention time and space complexity as well.
@ManpreetKaur-rf2yh
@ManpreetKaur-rf2yh 2 жыл бұрын
u r the best guide one could ask for... lots of love
@elephant742
@elephant742 2 жыл бұрын
Kya mast sikhaya bhai ! I wish I could tag my imbecile teachers here. They should learn from you. You definitely know how to break down concepts easily. Aditya Verma supremacy !!
@himanshurane4847
@himanshurane4847 3 жыл бұрын
I wrote the solution with my own by using the concepts you taught in previous lectures. Thanks you so much
@aarushsharma270
@aarushsharma270 2 жыл бұрын
my trainer recommended me your lecture. Your approach to the problem is good
@autismo1969
@autismo1969 2 жыл бұрын
you wont find a better explanation for LCS anywhere. Thanks a lot aditya!
@Drappyyy
@Drappyyy 3 жыл бұрын
Over 1 lakh views and only 3.8k likes :( This guy deserves more likes guys because of this wonderful explanation for the whole dp series.
@amithbhat1782
@amithbhat1782 4 жыл бұрын
Loving the content you put out man! Please also put out a series on Graph problems as well :) I feel knowing BFS, DFS is different from actually applying them in the problems like number of islands etc.Please make a series of videos on them as well
@amitkumarsingh5414
@amitkumarsingh5414 4 жыл бұрын
I suggest you, open your startups like scalar academy, Bhai tu un sb Microsoft, google walo pr bhari padega..
@nikhilbalwani5556
@nikhilbalwani5556 3 жыл бұрын
aaram se bhai
@eraramchandra1338
@eraramchandra1338 3 жыл бұрын
@SauRabh_50 kaise jyada bhai ?
@yadneshkhode3091
@yadneshkhode3091 3 жыл бұрын
I was able to solve this problem on my own because of your previous videos THANK YOU
@thotayateeshchandrasai3828
@thotayateeshchandrasai3828 2 жыл бұрын
Your videos are very easy to understand and also cleared many misconceptions I previously had. Thank you very much
@harjos78
@harjos78 4 жыл бұрын
Simply awesome!. Never seen anyone explaining so well like you do Aditya!.. Amazing!..
@VirajChokhany
@VirajChokhany 4 жыл бұрын
Brooooo you're the best!!! Please add videos on DP on graphs and backtracking also!!!! Thanks a ton for your effort!!
@kapil16garg5
@kapil16garg5 4 жыл бұрын
sir,,,you are awesome... bestest tutorial of DP
@khssameernew
@khssameernew 4 жыл бұрын
Excellent Explanation !! .. Thank you so much !! ..Best DP explanations so far on KZbin.
@satyamgupta4808
@satyamgupta4808 Жыл бұрын
very very nice teaching unlike others who just come type code and just read out that
@sagardafle
@sagardafle 3 жыл бұрын
Thank you for putting so much efforts in putting these solutions and most importantly teaching them the right way.
@deeproy7292
@deeproy7292 4 жыл бұрын
recursion toh jadhu hai bhai...love you bhai
@adityasingh7288
@adityasingh7288 3 жыл бұрын
Esa content kahi nhi dekha ek number !
@SwikarP
@SwikarP Жыл бұрын
Best of the best of the best. I am preparing for Amazon, JP Morgan Chase Interview. Helps a lot Thank you
@ankitakumari9927
@ankitakumari9927 2 жыл бұрын
Hey, this is a great content hats off to you for that, but what I feel you should add more is ,why these problems fall in the DP category.
@jatinbhatoya8420
@jatinbhatoya8420 3 жыл бұрын
I solved it myself. All thanks to you. You are the best.
@tanmoymazumdar9354
@tanmoymazumdar9354 4 жыл бұрын
Bro your teaching skills are great ❤️.Please come up videos covering all the DS algo topic .we really need it .You are better to then any course either paid or free
@manavjain4453
@manavjain4453 9 күн бұрын
Wow, such beautifully explained. Thankyou!
@vishvajeetchhillar
@vishvajeetchhillar 2 жыл бұрын
literally! the best . strongly recommended for first year and second year students
@shubhamdudhe673
@shubhamdudhe673 2 жыл бұрын
Sir your teaching style 110/100
@ShreyashThakurBCT
@ShreyashThakurBCT 5 ай бұрын
You are a great teacher. Your teaching method and flow is very easy to understand. May shree ram bless you and you may attend all the success in life.
@funmania9259
@funmania9259 3 жыл бұрын
this whole series is a gem
@overcolck777
@overcolck777 4 жыл бұрын
9999 ^ 9999 likes for this explanation. I could have never imagined that LCS can be this simple. Thank you.
@abhinavghosh725
@abhinavghosh725 4 жыл бұрын
nice of you to go through the whole process !
@ShrutiAgrahari0803
@ShrutiAgrahari0803 2 жыл бұрын
this is the best lecture of LCS this is really really helpful for the beginner in programming thank you so much for this amazing DP series 💯💯
@sahilkansal288
@sahilkansal288 3 жыл бұрын
Hi, I think you should also mention the algorithm complexity of both(recursive and dp) solutions also.
@irrompible4588
@irrompible4588 3 жыл бұрын
Silver button on its way.. Congratulations..
@shreyaskarsrivastava3311
@shreyaskarsrivastava3311 Жыл бұрын
I feared these kind of LCS derivatives, I on my own developed the right intuition to solve this one using previous problems, felt so good !
@AKSHAY99552
@AKSHAY99552 3 жыл бұрын
The best explanation i have ever seen. Thanks Aditya Bhai
@anishkoirala8532
@anishkoirala8532 7 ай бұрын
Ioved your teaching approach I hope you know every bit of technology everything, so that you break it down for us. I have been trying to get my head on machine learning if there is any chance you coming up with lectures! 😇 Or recommended me some your best pick course on ML.
@varunshridhar1310
@varunshridhar1310 3 жыл бұрын
Fantastic teaching bro... I was terrified of DP... Now they have become way simpler.. grateful to you I guess people will be willing to pay for these videos. I have downloaded the playlist just in case. 😛
@ofcistillloveyou
@ofcistillloveyou 4 жыл бұрын
When would you complete this playlist? I have been relying on this to gain my DP knowledge. Please complete it. Thanks for all the tutorials you have created. Much appreciated
@milindsah2510
@milindsah2510 3 жыл бұрын
100 saal jiyega bhai aapna!! :)
@udaytewary3809
@udaytewary3809 3 ай бұрын
Really thankyou bhaiya due to ur teaching i was able to write all the three approaches recursive, memoization, tabulation for this problem earlier lcs problem were nightmare for me This is only possible because of u❤❤❤❤
@himansh4812
@himansh4812 Жыл бұрын
@8:00 bhaiyya mai bhi starting me feel lene ke liye pura recursive tree bana ke base condition find karta tha. 🥲 But ab aisa nahi karta hu. 🥳. I'm learning and at start to feel the recursion I used to do like that.
@nihaljaiswal1839
@nihaljaiswal1839 4 жыл бұрын
I had watch lots of lecture of recursion and dp but I always be confused in these topic but watching these video lecture series made me clear each concept of recursion & DP from basic to advance level
@RISHAVRAJnullRA
@RISHAVRAJnullRA 4 жыл бұрын
its amazing all ur lectures are far better than any other content i have ever seen regarding programming. Hope to see more contents from u.. I am aiming to finish ur each and every playlist .
@pritishpattnaik4674
@pritishpattnaik4674 2 жыл бұрын
the way u teach , I can never forget any concept
@jasmeen2541
@jasmeen2541 4 жыл бұрын
You are just amazing!!!❤ Can't thankyou enough for such amazing explainations! Really thankyou very much, you made DP the best!🙌
@nikhilrajput8696
@nikhilrajput8696 3 жыл бұрын
Your teaching style is awesome, Aditya. Please provide some tutorials on Kadane and LIS too
@priyarathore9266
@priyarathore9266 3 жыл бұрын
Best DP course on internet!
@vivekupadhyay737
@vivekupadhyay737 2 жыл бұрын
Awesome explanation, very intuitive explanation with choice diagram and base case.
@amantomer3957
@amantomer3957 4 жыл бұрын
Wow.. You are really talented teacher... Great explaination👌👌
@Code_Solver
@Code_Solver 3 жыл бұрын
Excellent Explanation Thank you Aditya Verma
@Varunkumar-fr5zh
@Varunkumar-fr5zh 4 жыл бұрын
sir ap kya ho??? sir bhagwan ho!!! etna acha kse padha skte ho ap!!!! thanku to be here!!
@aurevoir6879
@aurevoir6879 4 жыл бұрын
Nice explaination brother. Please cover Graph and Trees as well. It would be really helpful to learn from you . Great concept clarity.
@akashrajput3731
@akashrajput3731 4 жыл бұрын
Hey bro, I have a request for you that if you are not able to make videos of the remaining topic of DP then please provide us notes of the remaining questions of DP. you are amazing bro, everyone says that DP is the toughest topic in coding but in which way you are teaching us, it is not looking that tough. thanks bro.....
@NoName-lq7xk
@NoName-lq7xk 3 жыл бұрын
You are a teacher material ❤️
@sameer1571
@sameer1571 4 жыл бұрын
Done this question with the intuition of edit distance and it got accepted in gfg thanks for another approach. Bro your videos are lit 🔥🔥🔥🔥🔥🔥🔥🔥🔥🎉🎉🎉🔥🔥🔥🔥🔥🔥🔥🔥
@Raj-sz9pg
@Raj-sz9pg 3 жыл бұрын
I think use are very great sir. I would like to sit in your class for hours learning this stuff. Online concentration is hard though
@sheebapradhan2138
@sheebapradhan2138 4 жыл бұрын
You make everything easier than I used thought. Best dp tutorials!!! Thnks a lot🙌
@anuraggupta2109
@anuraggupta2109 2 жыл бұрын
One of best tutorial bro .. hats off t you
@danishsharma496
@danishsharma496 2 жыл бұрын
wow , I was actually able to write solution by myself best awesome explanation
20  Longest common subsequence Memoization
31:19
Aditya Verma
Рет қаралды 196 М.
23  Printing Longest common subsequence
26:45
Aditya Verma
Рет қаралды 241 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 699 М.
34  Matrix Chain Multiplication Recursive
40:47
Aditya Verma
Рет қаралды 259 М.
Longest Common Subsequence(LCS) Dynamic Programming In O(N) Space | EP7
34:19
JAVAAID - Coding Interview Preparation
Рет қаралды 24 М.
21  Longest common subsequence Top down DP
25:35
Aditya Verma
Рет қаралды 196 М.
24 Shortest Common SuperSequence
22:59
Aditya Verma
Рет қаралды 201 М.
computer architecture  part 2 !!  atul goswami
51:25
CODING CLASSES
Рет қаралды 146
DP 43. Longest Increasing Subsequence | Binary Search | Intuition
16:27
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 699 М.