24 Shortest Common SuperSequence

  Рет қаралды 201,722

Aditya Verma

Aditya Verma

Күн бұрын

Пікірлер: 373
@purandarparitosh
@purandarparitosh 4 жыл бұрын
I can't believe we are getting all this for free! Pure Gold! Thanks a ton, bhaiya! :) :)
@TheAdityaVerma
@TheAdityaVerma 4 жыл бұрын
Welcome brother !! And yeah its for free, the only thing I would ask you is to share the channel with the needful to help others and to the help the channel grow.
@tarunreddy8243
@tarunreddy8243 4 жыл бұрын
@@TheAdityaVerma i done it 3000 times bhai
@pruthvirajk6019
@pruthvirajk6019 4 жыл бұрын
@@tarunreddy8243 Eh ooru mandi
@kongzilla2897
@kongzilla2897 4 жыл бұрын
@@pruthvirajk6019 me hyderabad
@hemantmangwani1006
@hemantmangwani1006 4 жыл бұрын
@@TheAdityaVerma Bhai I have shared in all of my college coding club Groups of every year. Keep Making More Videos.
@suvitsharma7432
@suvitsharma7432 3 жыл бұрын
@14:23 , I said to myself "LCS" and then after a cinematic pause you said "answer to bol hi diya hoga ab tak" this kind of connection between student and a teacher is even rare in live 1 to 1 classes :) thank you very much for such a wonderful playlist !!!
@ka_ka3141
@ka_ka3141 2 жыл бұрын
pinch
@kartikeshwarhingole6007
@kartikeshwarhingole6007 2 жыл бұрын
Han bhai
@beinghappy9223
@beinghappy9223 2 жыл бұрын
Same here
@rjesh2062
@rjesh2062 2 жыл бұрын
Not bragging but mereko toh prblm statement padhne se hi pata chal gya Aditya Sir OP
@bingikarthika
@bingikarthika 11 ай бұрын
Same here
@tiyashadas5247
@tiyashadas5247 4 жыл бұрын
I just said "longest common subsequence" and you said " I hope Tumne abtak bol Diya hoga answer, itna Jo padhayaa Hain" 😂 Thanks wouldn't be enough a word to express how thankful I actually am for this tutorial! I'll always recommend this channel to everyone I know! Great work!🌻
@TheAdityaVerma
@TheAdityaVerma 4 жыл бұрын
Thanks Tiyasha 😅 I am glad that you answered that correctly !! And yeah thanks for the sunflower !! 😂😂
@tiyashadas5247
@tiyashadas5247 4 жыл бұрын
@@TheAdityaVerma 😂 You're welcome!
@bhavyapandey
@bhavyapandey 4 жыл бұрын
Exactly same bhai :')
@AmanSharma-li7ct
@AmanSharma-li7ct 4 жыл бұрын
@@adhishmalviya2408 Nhi milega Sunflower ke liye Thanks XD
@kunalbahirat7795
@kunalbahirat7795 2 жыл бұрын
@@TheAdityaVerma men will be men
@rahulsawhney
@rahulsawhney 3 жыл бұрын
Below is the detailed explanation for printing of supersequence. Here we first do lcs and then like @Aditya showed in printing of LCS you can check for following: 1. if character exists in both add to string. 2. if not check dp[i][j-1] >dp[i-1][j] which means the str which represents column its jth is not common so push that but dont push row as chances are it can still exist. 3. Do opposite in else. 4. once out of while loop check if i or j is greater and insert them into string. Below is the code for that: string lcs(string str1, string str2, int m , int n) { int dp[m+1][n+1]; for(int i=0;i 0) { s.push_back(str1[i-1]); i--; } while(j > 0) { s.push_back(str2[j-1]); j--; } reverse(s.begin(), s.end()); return s; }
@messi_codes
@messi_codes 2 жыл бұрын
Thanks
@AmanSharma-or5vh
@AmanSharma-or5vh 2 жыл бұрын
Beautiful code
@jaxsriv1052
@jaxsriv1052 2 жыл бұрын
Last loop while(i>0) is not clear. Can you please tell why is that done.
@spandanbasu_1228
@spandanbasu_1228 2 жыл бұрын
Perfect.. was just looking for it!! Thanks man😊❤
@spandanbasu_1228
@spandanbasu_1228 2 жыл бұрын
@@jaxsriv1052 It is basically for- if there is any character left unchecked for String1 then it copies it to our answer String,, Same goes for while(j>0).. if any character is left unchecked in String2, it simply adds it to our answer String. Hope that clarifies ur doubt!
@ShreyaSingh-vr9qi
@ShreyaSingh-vr9qi 4 жыл бұрын
Nicely expalined, the good part in your tutorial is that you cover all the basics also while teaching on a topic. Thanks For making excellent video series on Dynamic Programming. Keep it Up !!
@TheAdityaVerma
@TheAdityaVerma 4 жыл бұрын
Thanks for watching dude !! ✌️❤️
@AvikNayak_
@AvikNayak_ 3 жыл бұрын
@@TheAdityaVerma please make a playlist on graphs also.
@competitivedoritos4294
@competitivedoritos4294 4 жыл бұрын
teacher: so everybody open the book and head to page numb... aditya: pehle bed tea do [5:05 time stamp reference]
@mickyman753
@mickyman753 3 жыл бұрын
i can somehow imagine him asking for a bed tea from the school teacher
@yogeshyts
@yogeshyts 3 жыл бұрын
@@mickyman753 ab school ke bache se dp padhenge btech wale
@mickyman753
@mickyman753 3 жыл бұрын
@@yogeshyts arey whitehat Jr. ke ad main Chintu app bna rha hai , toh phir school ka baccha bhi dp kr hi lega
@yogeshyts
@yogeshyts 3 жыл бұрын
@@mickyman753 😂🔥 Btw which clg?
@mickyman753
@mickyman753 3 жыл бұрын
@@yogeshyts sgsits,indore , you?
@dsa9980
@dsa9980 4 жыл бұрын
Shit man! Are you serious? Kya padha rahe ho yarr.. my first reaction after hearing that this is purely related to LCS => "Ohh My God.." You are awesome yarr.. !! Jio bhai.. bahot saari duvaye..!!
@sayantanbanerjee821
@sayantanbanerjee821 4 жыл бұрын
14:25 Twist of the century! :jaw_dropping:
@0anant0
@0anant0 4 жыл бұрын
24 of 50 (48%) done! @4:47 'teacher aaye to unhe kehdo ki muzhe bed tea chaahiye' :-) I was all serious trying to follow-along the logic and your dry humour in the middle of it cracked me up!
@nikhilpatil2482
@nikhilpatil2482 3 жыл бұрын
same
@jaswanthsabbisetti6820
@jaswanthsabbisetti6820 4 жыл бұрын
I improved understanding of Hindi and DP after watching these :)
@sanjayvasnani988
@sanjayvasnani988 3 жыл бұрын
This playlist is making me fall in love with DP.
@neildahiya2524
@neildahiya2524 4 жыл бұрын
Bro really incredible videos. DP has never looked so easy!
@jhalamaan
@jhalamaan 10 ай бұрын
WOW mindblowing explaination .. i wanna see you live wanna know about you ... keep putting your rays over us ,ADITYA
@ranjeet5806
@ranjeet5806 2 жыл бұрын
bina video dekhe with the help of previous vids solve krdia question. Leetcode hard dekhke dar lagta tha and aaj toh question majak laga. All thanks to one and only Aditya Verma. Thank you bhaiya.
@ayushsrivastava9932
@ayushsrivastava9932 4 жыл бұрын
nice explanation. I concluded that its basically n(AUB)=n(A)+n(B)-n(A ∩ B)
@aryananandsinha843
@aryananandsinha843 3 жыл бұрын
sorry man but its not the case take for example : string 1="hxmngqmf" string 2="gnapcnty" by your method you will get 14 but the answer is 15.
@priyarani9569
@priyarani9569 3 жыл бұрын
But it is for sets not for strings because.. A String can contain duplicate letter
@tusharsaxena8239
@tusharsaxena8239 3 жыл бұрын
@@priyarani9569 exactly
@gaunikasrivastava7851
@gaunikasrivastava7851 3 жыл бұрын
@@priyarani9569 Also not necessarily A intersection B contains the common letters in the same order. That's also a reason.
@abhinandanb3591
@abhinandanb3591 3 жыл бұрын
puluthi
@akash-yh8kb
@akash-yh8kb 4 жыл бұрын
This is LC hard problem and i was able to find the pattern before you shared the solution or gave hints. Thank you for this.
@devanshmesson2777
@devanshmesson2777 3 жыл бұрын
This is how a literally a concept should be explained. Our college teachers should learn something from this. Thank you so much Aditya bhaiya!
@saliq0097
@saliq0097 11 ай бұрын
when you said "ab mai thak gya hu bolte bolte" depicts your great efforts that you are putting to make us understand the concept. ❣ salute brother.
@bhawna1997
@bhawna1997 2 жыл бұрын
This is by far the most interesting channel on KZbin to learn DP! What a great video!! This series can make anyone fall in love with DP!
@arafathbaig841
@arafathbaig841 4 жыл бұрын
Aditya verma, you are gold man. I have been daily watching your DP series and I have learnt a lot. Thank you. And I have one more request, apart from DP, graph problem is another thing people find difficulty in finding patters. After DP series, I will be looking at your other series too. But graph theory would be very helpful. So please in later future try to make vidoes on graph related problems.
@bhavyapandey
@bhavyapandey 4 жыл бұрын
yes please @Aditya bhaiya graph theory ke placement point of view se questions karwa dijiye.
@ayushvats1808
@ayushvats1808 3 жыл бұрын
yes sir please
@adityaperiwal4819
@adityaperiwal4819 4 жыл бұрын
It's a pain in the ass to see such a high quality video get such less number of views. I hope this channel grows exponentially.
@yuvrajoberoi7834
@yuvrajoberoi7834 4 жыл бұрын
Ha bhai apna selection hne ke bad par😂
@raviashwin1157
@raviashwin1157 4 жыл бұрын
@@yuvrajoberoi7834 bhai yeh bol bol kar sabko scheme bata dega😹
@yuvrajoberoi7834
@yuvrajoberoi7834 4 жыл бұрын
@@raviashwin1157 bhai 25 din ke andr selection lelo😂
@raviashwin1157
@raviashwin1157 4 жыл бұрын
@@yuvrajoberoi7834 🤣
@anmolsharma9539
@anmolsharma9539 3 жыл бұрын
@@raviashwin1157 ashwin bhai aap cricket khelo yha kha aa gye 😂
@keshavraghav3896
@keshavraghav3896 2 жыл бұрын
Problem statement padhte hi, leetcode par jaake code krdia iska solution... Great series, started loving Dp becuse of you...
@chetannikam8129
@chetannikam8129 3 жыл бұрын
bhai 1 number.........................................................kya padhate yar tum.
@pizzazzguy
@pizzazzguy 4 жыл бұрын
The explanation is, as usual, great but this will only give the length of the supersequence. The main problem statement is to print the common supersequence. For that, we can't use LCS directly, we have to make some changes to get that matrix that will be used to print the supersequence using the concepts from the previous video. Initialization will be changed. If anyone of the string is empty then the length of the result will be the length on the non-empty string. That's why -> if (I == 0) dp[i][j] = j; else if (j == 0) dp[i][j] = I; Now, if the current characters are equal then it's obvious to increase the length of the result by 1. Otherwise, we have to find the min length of sequences for two cases -> when ith character of string 1 is included and when jth character of string 2 is included. Here's the code for the dp matrix - int dp[s1.length()+1][s2.length()+1]; for (int i = 0; i < s1.length()+1; i++) { for (int j = 0; j < s2.length()+1; j++) { if (i == 0) { dp[i][j] = j; } else if (j == 0) { dp[i][j] = i; } else { if (s1[i-1] == s2[j-1]) { dp[i][j] = 1 + dp[i-1][j-1]; } else { dp[i][j] = 1 + min(dp[i-1][j], dp[i][j-1]); } } } }
@shashanksarma4096
@shashanksarma4096 2 жыл бұрын
Thanks for this reply, thought of the same solution before he related it to LCS!
@aakanshasoni5798
@aakanshasoni5798 4 жыл бұрын
Kudos to your effort and brilliant approach which made hard problems easy and fun which was nightmare before. I wish every talented like you contribute like you did. Thank you so much I have been benefited a lot from your videos.
@vishalsethi4024
@vishalsethi4024 3 жыл бұрын
Man the confidence that you have while saying ki "ab to tumne bol dia hoga" is huge!!!! That is very great feedback loop that it creates.... Great content you are creating!
@hashcodez757
@hashcodez757 8 ай бұрын
14:25 "I hope tumne answer bol hi diya hoga ab tkk.......itna pdhane k baad"😂😂 Thank you so much bhaiya!!
@nayan7065
@nayan7065 6 ай бұрын
Bhaiya you are best teacher. I understood every vedios and didn't skipped any you explained in awersome way. God bless you.
@udaytewary3809
@udaytewary3809 3 ай бұрын
Till 3:22 i was getting a strong sent of LCS and at 8:37 you confirmed it this is only because of you really thankyou bhaiya ❤❤❤
@sourabhzambre2105
@sourabhzambre2105 2 жыл бұрын
bravo !!! just by looking at the input strings i was able to figure out the approach and my o/p was bit different -> len(LCS) + len(s1-LCS) +len(s2-LCS) Which eventually becomes len(s1+s2)-len(LCS)...Awesome video 💟
@ajeetpatel7991
@ajeetpatel7991 4 жыл бұрын
after watching Aditya Verma.. where I've been before?? thank you bhaiya.
@adarshsasidharan254
@adarshsasidharan254 2 жыл бұрын
Printing the Shortest Common Supersequence is in 29th video in playlist. Thank you.
@AemondTargaryen_
@AemondTargaryen_ 10 ай бұрын
thank you
@shree1365
@shree1365 4 жыл бұрын
Bhai ksm se bht achha pdhate ho yaar .. mujhe dp bht hard lgti thi lekin apka video dekh rha hu continue .. ab bht kuchh shikh gya hu .. atleast dp ka koi problem ab mil jaye na to km se km usko ab smjh kr or coding kr skta hu thanks bro❤️❤️❤️❤️
@manavshah7450
@manavshah7450 3 жыл бұрын
You have really created interest in me from dp. You have made things simple and easy to understand. Thanks a lot for everything brother!!!
@abheykalia3409
@abheykalia3409 2 жыл бұрын
For creating the supersequence: 1. FInd out the what is the longest common subsequence (find the string) 2. now iterate over the LCS and in the resultant string add all elements from s1 and s2 to the left of LCS[I] 3. Do this for every element of the LCS and at last, add the characters which are left from s1 or s2. This method will ensure that order of the strings is maintained and the common characters are used only once
@Adarsh-mn7pl
@Adarsh-mn7pl 2 жыл бұрын
not clear
@prabalsrivastava9808
@prabalsrivastava9808 2 жыл бұрын
@Kartik Kalia 😂
@pranayprasad50
@pranayprasad50 3 жыл бұрын
Best teacher ever, now I am getting the solution by just a little hint, all credit to Aditya sir 🤩🤩
@arpitparmar2121
@arpitparmar2121 4 жыл бұрын
Who else laughed very hard after listening "Ab mai thak gaya hu is concept ko padhate padhate" hahahaha. Your videos are incredible brother. Thank you :)
@AnupBarman-bd1ju
@AnupBarman-bd1ju 5 ай бұрын
15:47 that "Shortest wortest jaay bhaad me" cracked me up man. Lmaoooo
@pradeepmondal4943
@pradeepmondal4943 4 жыл бұрын
Bade Bhaiya love u 🥰🥰🥰🥰🥰🥰 ... Maine almost 60%+ playlist Dekha hu ... Life Ka sabse Acha programming playlist 💞💞💞💞💞💞💞 ... Bhaiya time apko time mile to aur bhi videos upload kijiyega ... It's super amazing 😍😍😍😍😍😍😍❤️❤️❤️❤️.. great love from banglore Bhai 🥰
@TheAdityaVerma
@TheAdityaVerma 4 жыл бұрын
Thanks brother, will be uploading soon !! And thank you for so many heart emojis ❤️😅, Please consider sharing among your friends to help the channel grow. Thanks for watching !!
@indranilthakur3605
@indranilthakur3605 4 жыл бұрын
@@TheAdityaVerma I am glad to hear that. If you could let us know what all topics you're planning to upload, that would be helpful. I check the notification daily to see if you have uploaded any videos or not.
@durgeshkushwaha2534
@durgeshkushwaha2534 Жыл бұрын
I just want to say, this is amazing series on DP Pure gem💎💎
@soumikmukherjee4797
@soumikmukherjee4797 3 жыл бұрын
Aditya Bhaiya you are god... lot's of respect and love for you
@RandomShowerThoughts
@RandomShowerThoughts Жыл бұрын
Brother let me just say, you have a talent. I couldn't see this at all, and aftet you explained this, it just clicked and made so much damn sense.
@avinashmodi5230
@avinashmodi5230 2 жыл бұрын
That "mere bhai" gives me same feeling which my college friend used to say before teaching outside exam hall....
@shashankmishra4079
@shashankmishra4079 3 жыл бұрын
You following the new teaching style by using example(and that is extraordinary) but u still reading newspaper in the morning 😋 and how u got time to reading the newspaper before going the college 😜.By the way I lost one thing due to this DP playlist and that is hype of DP and this is really good so again Thank you.
@sharuk3545
@sharuk3545 3 жыл бұрын
people said DP is hard so i am also assume its hard and start your dp playlist from start but there is not a single point i realize that dp is tough you taught dp very easy and interesting way, So thnk u sooo much aditya for provide such a amazing content, i am always thnkful to you.
@pandavgupta1427
@pandavgupta1427 2 жыл бұрын
Thank you sir for your amazing explanation. Your playlist for recursion and DP is very helpful . Again thanks a lot for these video.
@sohebshaikh3344
@sohebshaikh3344 3 жыл бұрын
Bhaisahab maza aaagaya what a explanation 😍😍
@kailashjangir1530
@kailashjangir1530 3 жыл бұрын
my mind is blown bro🤯🤯🤯...mouj kar di bhai
@joshithmurthy6209
@joshithmurthy6209 2 жыл бұрын
this playlist is a gold mine !!
@cripz4203
@cripz4203 4 жыл бұрын
Q. What if there are say 3 or 4 strings? How will the complexity change?
@adarshsinghkushwaha6770
@adarshsinghkushwaha6770 4 жыл бұрын
i was thinking dp is the hardest thing in competitive programming, but after seeing your lectures, i realises that its not that hard.. thankyou......
@sambhavi6141
@sambhavi6141 2 жыл бұрын
Bhaiya, your way of explanation is the besttttt !!🥺🥺
@harshshukla7675
@harshshukla7675 5 ай бұрын
Note to self - There might be multiple LCS between two strings, but the SCS reconstruction would still work as our goal is to minimize the SCS. If we combine both strings directly, we can minimize its length by using any LCS to shrink the combined string. Since the length of all LCS sequences is the same, they would shrink the directly combined string equally while preserving the sequence.
@gandhijainamgunvantkumar6783
@gandhijainamgunvantkumar6783 3 жыл бұрын
I solved this problem immediately with the knowledge of lcs after you explained it till 3:40
@VIVEK1898
@VIVEK1898 3 жыл бұрын
Please make a video for the Longest Increasing subsequence problem!!
@shubhamchaudhary8688
@shubhamchaudhary8688 4 жыл бұрын
This series is definitely going raise the bar of Indian Coding standards. People will slowly start to fall in the beauty of DP and will use it more and more.
@TanviNaik-bl2od
@TanviNaik-bl2od 6 ай бұрын
Thank you for this golden playlist bhaiyya❤
@ghosted19282
@ghosted19282 6 ай бұрын
you made it very simple bhaiyaaa!!!!!
@LokeshPandey-m1m
@LokeshPandey-m1m Жыл бұрын
such a gem soln and teacher
@herculean6748
@herculean6748 Жыл бұрын
Oh my god, the way of explanation is lit, thanks!!🙌
@vaibhavkumarjha7771
@vaibhavkumarjha7771 Жыл бұрын
Please bring the playlist of graphs,trees,greedy algorithms ,divide and conquer algorithms, linked lists, hashmaps and backtracking also bhaiya 😇 btw this dp playlist is best on youtube !
@shubhamshah3023
@shubhamshah3023 3 ай бұрын
For the same question, agar input mein we have more than 2 strings aa jaaye to uska approach kaise rahega ? like we cannot solve it with DP right. Iteratively string merge kare to complexity badh jayegi ? So usko kaise approach karenge ?
@workandearnwithshubhi9050
@workandearnwithshubhi9050 3 жыл бұрын
Bhaiya ne motivate kiya toh sach mai observe kar liya😎😎😎😎😎😎
@adityan5302
@adityan5302 2 жыл бұрын
Bro your videos are like top notch. All I can do is if at all I get any ads, I'll do not skip them. Atleast this way I can help you get the max payment of that ad. Love you bro
@sarcasmtube69
@sarcasmtube69 4 жыл бұрын
honestly..u are a really great teacher...i never thought..ki mujhe kch smj m bhi aayega..but after your..videos I am actually able..to solve..it(can't believe I am not scared of dp now)..well..keep going..and please make videos on trees and graphs too😅
@vakhariyajay2224
@vakhariyajay2224 Жыл бұрын
Thank you very much. You are a genius.
@medhashree2416
@medhashree2416 4 жыл бұрын
Kya gazab padhate ho bhaiya aap 😁🙏
@GamingEver07
@GamingEver07 3 жыл бұрын
aise question dhek ke fatti thi ab bacho wale lagte h good work bro
@optimistic_dipak8632
@optimistic_dipak8632 3 жыл бұрын
Superb Aditya....! What an explanation brother...! World-Class Teaching...! Solid DP Playlist...! Keep it up..!
@aishwarya1895
@aishwarya1895 3 жыл бұрын
You are a gem ✌️
@rajatgupta7488
@rajatgupta7488 4 жыл бұрын
(A union B) = A + B - (A intersection B)
@shivankchaturvedi4817
@shivankchaturvedi4817 4 жыл бұрын
seriously bro u are just awesome u have provided the quality content for free .Respect (100) .Thanks a lot learned whole dp from you
@sabujjana2860
@sabujjana2860 4 жыл бұрын
It's very very enlightening.
@TheAdityaVerma
@TheAdityaVerma 4 жыл бұрын
Thanks brother I am glad it helped you ✌️✌️, Share and help this channel grow, Do share !! just dont see this text and keep on watching the videos.😂😂😂😂
@sonurathod9551
@sonurathod9551 4 жыл бұрын
you really teaches good plz continue teaching .subscribed your channel..god bless
@AkkumBakkum-m5h
@AkkumBakkum-m5h 2 ай бұрын
solving striver a2z sheet with your approaches next level aderaline hitting
@baravkarnishithjagdish-iii5945
@baravkarnishithjagdish-iii5945 2 жыл бұрын
maan gaye verma sahab 🙏
@sanjaychaudhary4673
@sanjaychaudhary4673 4 жыл бұрын
Thanks Aditya bhai, It was very helpful and the way of teaching this series very much systematic i have ever seen.
@TheAdityaVerma
@TheAdityaVerma 4 жыл бұрын
Thanks sanjay for watching !! Also do share with your friends and college
@NotFound-hy7qb
@NotFound-hy7qb 4 жыл бұрын
I solved this on my own in 10th minute you are great buddy
@mayurkoli4145
@mayurkoli4145 4 жыл бұрын
Boss you are great!!!!! MANITIAN🙂🙂✌️
@sumitkumarverma313
@sumitkumarverma313 4 жыл бұрын
aye nigga you here :)
@sumitkumarverma313
@sumitkumarverma313 4 жыл бұрын
boss manit se hai kya?
@shrutikakarande5441
@shrutikakarande5441 3 жыл бұрын
God bless you for sharing so much of knowledge !! Truly valuable content :)
@KrishStocks
@KrishStocks Ай бұрын
it can be done in O(n), use map for 1string store char and count use another map for string 2, now iterate over any map, assume we are iterating over 1st map, then see that character also present in 2nd map is take the max of that and add it to ur ans and erase that character from both the maps, after iterating completely then again iterate over 1st map and see if anything is remaining then add all and iterate over string 2 and add all the count, thats it done😅😅
@vaaidooyt1837
@vaaidooyt1837 3 жыл бұрын
@Aditya Verma Sir why you stopped posting videos on this channel
@joichirogaming
@joichirogaming Жыл бұрын
That sudden formula we created made the problem 1 second 💎💎
@sabbirhossain2132
@sabbirhossain2132 4 жыл бұрын
this video really helpful thank you so much brother...
@priyarathore9266
@priyarathore9266 3 жыл бұрын
Best DP course on internet!
@diveshrajput572
@diveshrajput572 4 жыл бұрын
bhut shandaar,bhai
@muntasir4600
@muntasir4600 2 жыл бұрын
Thanks To Bollywood and Doraemon Cartoon, I learned HINDI in childhood for these. What A channel it is. You are a GEM brother.Respect
@KhushiNautiyal-pk5re
@KhushiNautiyal-pk5re 6 ай бұрын
best explanation🙏🙏🙏🙏
@mayurrajbharati872
@mayurrajbharati872 3 жыл бұрын
Bhaiya, can you please upload video of how to print the Shortest Common Supersequence?
@vanshchaudhary8291
@vanshchaudhary8291 2 жыл бұрын
very nice explanation
@parthdeshwal4419
@parthdeshwal4419 3 ай бұрын
solution starts @8:22
@PeaceLoveAman
@PeaceLoveAman 3 жыл бұрын
14:23 iss baat ka dard hum samjh sakte hai! 😂😂😂😂
@danishakhtar2683
@danishakhtar2683 3 жыл бұрын
God ho bhaiya aap Dp ke Love from NITW
@messi_codes
@messi_codes 3 жыл бұрын
how to print this " Shortest Common Super sequence "?
@navneetkaur4125
@navneetkaur4125 3 жыл бұрын
You teach so amazing!
@qR7pK9sJ2t
@qR7pK9sJ2t 4 жыл бұрын
bhai jaisa tm padha rahe ho naa .. College ke teacheron ka sirf Bed Tea dene ka hi kaaam rah jaega..LOLOLOLOL
@beerauppamnaveenteja720
@beerauppamnaveenteja720 11 ай бұрын
Can I get any good reference to learn the basics goodly for Graphs, Bit manupulation and Greedy Algorithms?
@ravilamkoti5081
@ravilamkoti5081 4 жыл бұрын
maza aa gaya bhai mainay code may khud say implement kar diya
@ArunSethia
@ArunSethia 2 жыл бұрын
awesome explanation.
@preetambal7443
@preetambal7443 4 жыл бұрын
I am trying to figure out the algorithm to print the shortest common supersequence..Can you please help me with that?
@amithbhat1782
@amithbhat1782 3 жыл бұрын
same method as printing the LCS, just you have to add the character with lesser value of T in the array string : like this : if(T[i-1][j]
@preetambal7443
@preetambal7443 3 жыл бұрын
@@amithbhat1782 thanks 🙏
@amithbhat1782
@amithbhat1782 3 жыл бұрын
nvm, video is already uploaded.... didnt notice(number 29 of DP series)
29  Print shortest common Supersequence
23:09
Aditya Verma
Рет қаралды 173 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
19  Longest common subsequence Recursive
27:42
Aditya Verma
Рет қаралды 297 М.
20  Longest common subsequence Memoization
31:19
Aditya Verma
Рет қаралды 196 М.
ADS1: The shortest common superstring problem
8:12
Ben Langmead
Рет қаралды 25 М.
DP 31. Shortest Common Supersequence | DP on Strings
26:44
take U forward
Рет қаралды 172 М.
23  Printing Longest common subsequence
26:45
Aditya Verma
Рет қаралды 241 М.
Shortest common superstring || InterviewBit
24:49
Avinash K Gautam
Рет қаралды 1,2 М.
26  Longest Palindromic Subsequence
12:46
Aditya Verma
Рет қаралды 220 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН