26 Longest Palindromic Subsequence

Поділитися
Вставка
  • Опубліковано 12 вер 2024
  • Longest Palindromic Subsequence
    Given a sequence, find the length of the longest palindromic subsequence in it.
    Example :
    Input:"bbbab"
    Output:4
    PROBLEM STATEMENT LINK:www.geeksforge...
    Playlist Link: • Dynamic Programming | ... .
    ------------------------------------------------------------------------------------------
    Here are some of the gears that I use almost everyday:
    🖊️ : My Pen (Used in videos too): amzn.to/38fKSM1
    👨🏻‍💻 : My Apple Macbook pro: amzn.to/3w8iZh6
    💻 : My gaming laptop: amzn.to/3yjcn23
    📱 : My Ipad: amzn.to/39yEMGS
    ✏️ : My Apple Pencil: amzn.to/3kMnKYf
    🎧 : My Headphones: amzn.to/3kMOzM7
    💺 : My Chair: amzn.to/385weqR
    🛋 : My Table: amzn.to/3kMohtd
    ⏰ : My Clock: amzn.to/3slFUV3
    🙋🏻‍♀️ : My girlfriend: amzn.to/3M6zLDK ¯\_(ツ)_/¯
    PS: While having good gears help you perform efficiently, don’t get under the impression that they will make you successful without any hard work.

КОМЕНТАРІ • 602

  • @himanishbhattacharya1607
    @himanishbhattacharya1607 4 роки тому +446

    This playlist is one of the rarest gem in youtube.

    • @Prashantkumar-pn6qq
      @Prashantkumar-pn6qq 4 роки тому +14

      gem which is yet to be found by many coders!

    • @kollivenkatamadhukar5059
      @kollivenkatamadhukar5059 3 роки тому +4

      leetcode.com/problems/maximize-palindrome-length-from-subsequences/ using this idea doesn't work always, this question is a example.(I mean it makes things harder)

    • @pr1493
      @pr1493 2 роки тому

      @@Prashantkumar-pn6qq tere jaise bache coders ke liye ye playlist chahiye

    • @thegreekgoat98
      @thegreekgoat98 2 роки тому +1

      @@pr1493 kyu bro... Tereko kya lagta hai yeh DP playlist acha nahi h?

    • @pr1493
      @pr1493 2 роки тому +1

      @@thegreekgoat98 Ye use kar le, but aisa nahi h ki bas yahi aisa playlist h jo useful h.. lol.. dekh ke kuch ni hone wala h unless you practice

  • @tejasjoshi1907
    @tejasjoshi1907 3 роки тому +313

    I am literally watching it like a webseries were I am always curious about what will happen in next episode and it is always hilarious 🔥❤️

    • @_ChetanaNagare
      @_ChetanaNagare 2 роки тому +11

      exactly 😂💯

    • @FardeenKhan-pn2hk
      @FardeenKhan-pn2hk 2 роки тому +9

      basically a suspense thriller😅

    • @maniyadav3256
      @maniyadav3256 2 роки тому +6

      Exactly, Whenever I start a new video a suspense is there that what new technique he is going to apply . literally Loved it......!!!

    • @rachakondaeshwar4129
      @rachakondaeshwar4129 Рік тому +1

      exactly

    • @kusumkoli665
      @kusumkoli665 8 місяців тому

      same!! i concept i was afraid of is so interesting now

  • @sarvagyaiitmadras8727
    @sarvagyaiitmadras8727 3 роки тому +314

    Teaching alone in room :- "Ye question sab questions ka BAAP hai"
    Mom enters the room :- " Ye questions sab questions ka Parent question hai " 😂😂

    • @TheAdityaVerma
      @TheAdityaVerma  3 роки тому +70

      😂😂😂😂😂😂😂😂😂

    • @मयंकपठानियाँ
      @मयंकपठानियाँ 3 роки тому +2

      @@TheAdityaVerma bhai sach btao aa to nahi gyi thi mammi kyun laga to sun k esa hi.

    • @shashwatrai1989
      @shashwatrai1989 3 роки тому +24

      @@TheAdityaVerma bhaiyya please put a video even though you don't teach anything. missing you kinda haha

    • @DSA_Coding
      @DSA_Coding 3 роки тому +1

      hn bhai

    • @divyagarg3283
      @divyagarg3283 3 роки тому +1

      @@TheAdityaVerma How can we count all palindroming subsequence of a string Using this approach ??

  • @happynewyear6123
    @happynewyear6123 4 роки тому +154

    i never imagined i would feel confident in dp just by watching 25 videos !

    • @naiksachin6524
      @naiksachin6524 3 роки тому +3

      this is the 26th video

    • @rishabsharma5307
      @rishabsharma5307 3 роки тому +23

      @@naiksachin6524 It's 25th only, for programmers counting starts from 0

    • @mohdhasnain3812
      @mohdhasnain3812 3 роки тому +4

      @@rishabsharma5307 GOod one

  • @ccarnagee7867
    @ccarnagee7867 4 роки тому +94

    When you said that the second string is redundant, I realised that here the second string would be reverse....And LCS again...Thanks for making things such easy for us....

  • @prachij
    @prachij 4 роки тому +287

    I have never been so excited to study dp before. 😁 I am excited to watch every next video and understand concepts which I once thought equivalent to rocket science, and now it's so much fun 🔥
    All credits to you legend ❤️

    • @TheAdityaVerma
      @TheAdityaVerma  4 роки тому +14

      Thanks Prachi 😅✌️

    • @shlokbansal5452
      @shlokbansal5452 2 роки тому +5

      @@TheAdityaVerma you are legend. can you also please upload other remaining topics like kadane's and Fibonacci questions

    • @mayukhchatterjee5998
      @mayukhchatterjee5998 2 роки тому

      @@shlokbansal5452 achha just tell me, will this be done without actually reversing the array and, by making j= last element, and check a[i] == a[j].... and hence

    • @SaiTeja-ob6zg
      @SaiTeja-ob6zg 2 роки тому

      @@mayukhchatterjee5998 yeah we can
      int longestPalinSubseq(string a) {
      //code here
      int n=a.length();
      vectordp(n+1,vector(n+1,-1));
      for(int i=0;i

    • @suvamchatterjee2177
      @suvamchatterjee2177 Рік тому +1

      @@shlokbansal5452 watch striver for rest topics and match it with his pattern.Thanks

  • @aryanmaheshwari1006
    @aryanmaheshwari1006 Рік тому +16

    Before you tell me the approach to reversing a string, my mind already came up with the idea of reversing the string and applying LCS to achieve the result. You are truly next level 🔥. Thank you so much ❣

  • @sayanghosh2883
    @sayanghosh2883 3 роки тому +43

    Due to your great teaching skills i figured out that we have to reverse on my own. Thanks for this great course on dp.

  • @0anant0
    @0anant0 4 роки тому +36

    26 of 50 (52%) done! Very good expl of logic!

    • @propubggamer2222
      @propubggamer2222 Рік тому +5

      Your 2 years ago comment motivting me now.

    • @abhashkumar8090
      @abhashkumar8090 Рік тому

      @@propubggamer2222 your 1 year ago comment is motivating me now.this shows how great teacher he is,every year someone new comes and learns from this goldmine.

  • @nikhilpandey856
    @nikhilpandey856 4 роки тому +50

    It looks like for the first time i am binge watching a course series....

  • @anishapandey4037
    @anishapandey4037 3 роки тому +5

    I listened to problem statement and voila, I had the solution in my mind within 30 seconds. All because of this playlist. Thank you so much!

  • @monikachaudhary9639
    @monikachaudhary9639 4 роки тому +27

    Very nice and unique explanation, can't imagine it was that easy. I could never understand the table every one start filling for this problem. You made it super easy. Thank you.

  • @aravindram871
    @aravindram871 4 роки тому +7

    Your casual approach to solving problems is simply awesome. As I am watching your videos, I think that is the key skill to learn. Dumb down the problem statement and think through the patterns. Great job !!. Please keep it coming.

  • @prathameshkhadse3481
    @prathameshkhadse3481 3 роки тому +8

    This exact question was asked in coding round and I explained it just like this, I could say the interviewer was impressed by this approach. Thanks Aditya Verma for making these videos 🙏🙏🙏

  • @sachintalakeri3175
    @sachintalakeri3175 3 роки тому +4

    One of the best playlist I have ever come across in UA-cam. This will really help new graduates and professionals

  • @himanshubhumbla5513
    @himanshubhumbla5513 Місяць тому +1

    49 sec in and i have a logic in my mind of comparing the string with its reverse and finding lcs. You're a great logic builder

  • @sharinganuser1539
    @sharinganuser1539 3 роки тому +68

    longest palindromic subsequence---> reverse ur string
    longest increasing subsequence---->sort ur string.
    do lcs.

    • @jayantsharma5209
      @jayantsharma5209 3 роки тому +8

      for longest increasing subsequence, sort will not work as it will give longest non-decreasing subsequence.
      For LIS, we need to both sort and remove duplicates.

    • @manishmalhotra5883
      @manishmalhotra5883 3 роки тому

      @@jayantsharma5209 @jayant bro why it wouldnot work .I am not able to come up with a counyer example . Can u help me .

    • @ssidhu
      @ssidhu 3 роки тому +3

      @@manishmalhotra5883 because in longest increasing subsequence problem the choosen subsequence should be strictly increasing i.e [1, 2, 2, 3] is not an increasing subsequence it is non decreasing subsequence. So by removing duplicates we can make it longest increasing.

    • @vaibhavagarwal5823
      @vaibhavagarwal5823 3 роки тому

      How to find longest bitonic sequence in an array with this approach?

    • @VIVEK1898
      @VIVEK1898 3 роки тому

      Thanks man!! I was struggling with the LIS problem.

  • @maneshwarsingh8688
    @maneshwarsingh8688 3 роки тому +8

    I see a lot of comments on this video on how to solve 'Longest Palindromic substring'. The method of LCSS(s, rev(s)) will not work in this case (can be easily shown by few counter-examples). However the question in itself is very easy to solve and requires nothing more than memoizing the recursive solution. We simple pre-compute and store whether s[i...j] is a substring or not in a DP[n][n] table.
    Code:
    bool isPalindrome(string &s, int i, int j, vector &dp){
    if(i>=j) return true;
    if(dp[i][j]) return dp[i][j];
    if(s[i]!=s[j]) return dp[i][j]=false;
    return dp[i][j]= isPalindrome(s, i+1, j-1, dp);
    }

    string longestPalindrome(string s){
    string res="";
    vector dp(s.size(), vector(s.size()));
    for(int i=0; i

    • @saurav0203srivastav
      @saurav0203srivastav 2 роки тому

      Well it will work, heres how
      class Solution {
      public int longestPalindromeSubseq(String s) {
      if(s == null || s.isEmpty()) return 0;
      int n = s.length();
      String rev = new StringBuilder(s).reverse().toString();
      int[][] dp = new int[n + 1][n + 1];
      for(int i = n - 1; i >= 0; i--){
      for(int j = n - 1; j >= 0; j--){
      if(s.charAt(i) == rev.charAt(j)){
      dp[i][j] = 1 + dp[i + 1][j + 1];
      }else{
      dp[i][j] = Math.max(dp[i + 1][j], dp[i][j + 1]);
      }
      }
      }
      return dp[0][0];
      }
      }

  • @galaxyyy664
    @galaxyyy664 2 роки тому +2

    I literally cannot believe I came up with the solution before even watching the video, have always been so scared of DP but now I'm getting comfortable with it. You my friend are doing god's work, Thank youuu.

  • @shauryarehan4074
    @shauryarehan4074 4 роки тому +2

    one word for you sir, You are literally a gem ! , the way you explain can't be matched , I wrote the recursive sol for LPS just after watching the ip and op format. :)

  • @gauravshukla5203
    @gauravshukla5203 4 роки тому +6

    i want to thank you from bottom of my heart ....although i am learning dp for the first time,but after watching one or two videos of this lcs series i am able to solve every question on my own just by looking at the problem statement..these videos are not just videos but blessings for all who are preparing for coding interviews!

  • @RandomShowerThoughts
    @RandomShowerThoughts Рік тому

    the way you broke down how to figure out how to convert this into an LCS was pure genius. That type of thinking is absolutely helpful. The way it clicked for me was incredible

  • @TheBoredandCool
    @TheBoredandCool 4 роки тому +2

    You are gem of dp. You made it so easier for all students to understand.

  • @sourabhsisodia9563
    @sourabhsisodia9563 2 роки тому +1

    College seniors recommended his playlist for DP ,i recommend this to my juniors and the cycle goes on. You and your work will be immortal DP king

  • @paragkhandait6206
    @paragkhandait6206 3 роки тому

    Bro the way you explain dynamic programming, hats off to you. Never ever saw anyone explaining DP so perfectly. Watching the playlist on a binge mode.

  • @ananyam8145
    @ananyam8145 День тому +1

    You're simply the GOAT, Aditya, thank you!

  • @showthecode5223
    @showthecode5223 4 роки тому +6

    Really sad to see low views on such great content 😔
    Best of luck brother 💪 this is excellent content 👍

  • @PriyankaYadav-ks5fe
    @PriyankaYadav-ks5fe 3 роки тому +3

    As I was afraid to solve the problems But you made it easy Now I am solving the problems with confident Thanks sir

  • @charan775
    @charan775 4 роки тому +5

    Thanks for this playlist brother. I was able to figure out the solution very quickly when I thought in the direction of LCS. Thank you

  • @anmoljain365
    @anmoljain365 3 роки тому +7

    I'm watching this to prepare for my placements and it's really helping me. If I got a decent placement I'd like to give you a treat 😂😂.

    • @shashwatrai1989
      @shashwatrai1989 3 роки тому +2

      bro kya hua? Hope you got a dream package.

    • @anmoljain365
      @anmoljain365 3 роки тому +2

      Yes I got placed in a good company. Aditya Ji party kab loge ✌️✌️
      Your content really helped me prepare for placement tests and interviews.
      Thank you ❤️❤️

    • @anmoljain365
      @anmoljain365 3 роки тому +2

      @Anmol Dogra bhai nhi behen
      SAP labs hua✌️

    • @shashwatrai1989
      @shashwatrai1989 3 роки тому +3

      @@anmoljain365 ehhhhh anmol ladki ka naam? omg my whole life has been a lie

    • @anandsharma5850
      @anandsharma5850 3 роки тому

      @@anmoljain365 congo!!!

  • @tanujgyan787
    @tanujgyan787 3 роки тому +1

    Seriously 2 mins in video, maine pause kia and i was able to think of solution myself. kuch to tumne sikha dia hai yar, amazing work!!!

  • @thatnaman
    @thatnaman 3 роки тому +25

    "Oh Fuck" 3:25 XD. Absolutely love this series. "Thanks".

  • @AvinashKumar-pb2op
    @AvinashKumar-pb2op 2 роки тому +5

    I came up with the right approach in first sight.
    Thank you sir 💐💐.
    You made me confident in dp 🙏🙏.

  • @LokeshSharma-hm5jz
    @LokeshSharma-hm5jz Рік тому

    You are really a magician, every video is like a suspence which is revealed in the end . Most of time I was clueless and not a single time i lose the focus.

  • @jitendraraghuwanshi8635
    @jitendraraghuwanshi8635 3 роки тому +2

    bro this playlist is one of the best playlist I have ever seen in my life on any subject.

  • @nitishgadangi
    @nitishgadangi 3 роки тому +2

    One word - MindBlowing Explanation!

  • @mukulverma8404
    @mukulverma8404 4 роки тому +1

    Best channel on youtube, crystal clear explanations and amazing concepts.

  • @shubhaverma5697
    @shubhaverma5697 3 місяці тому

    my mind is blown. I have never seen such an approach for palindrome sequences. kudos, man.

  • @VinayakSrivastava101
    @VinayakSrivastava101 3 роки тому +1

    This is really helpful. Thanks a lot for such an eloquent explanation. After watching this playlist from the beginning, I was able to guess the solution on my own after understanding the problem statement! You're the MVP of Dynamic Programming. Keep up the good work 👍🏼

  • @yogesh970
    @yogesh970 3 роки тому +5

    But this trick doesn't apply to Longest Palindrome SubString. for IP "aacabdkacaa"
    If I reverse the given string to form a second string and if I apply the LCSubstring logic it gives length 4 (aaca) which is wrong.

    • @adityaramakrishnan969
      @adityaramakrishnan969 2 роки тому

      Ur LCS is incorrect it should be aacakacaa

    • @mayukhchatterjee5998
      @mayukhchatterjee5998 2 роки тому

      @@adityaramakrishnan969 yes.

    • @mayukhchatterjee5998
      @mayukhchatterjee5998 2 роки тому

      @@adityaramakrishnan969 achha just tell me, will this be done without actually reversing the array and, by making j= last element, and check a[i] == a[j].... and hence

  • @GdLongerHandle
    @GdLongerHandle 3 роки тому +1

    Thanks bhai apne itne sikha dia pichle videos m ki ab main khud s soch sakta ki ap is ques m kya karoge.
    Dil s Dhanyabad 🤗

  • @waruncool
    @waruncool 4 роки тому +9

    Thank you! This made my day. Already on the 26th and i started today. Can you put 27 video again?

  • @meetfluffer937
    @meetfluffer937 3 роки тому +1

    Bhaiya, You've taught me what no one else could....
    You taught me how to think!!
    I could solve dp problems on my own :))))))))
    You don't know how thankful I am right now!!

  • @shashankbajpai5659
    @shashankbajpai5659 3 роки тому +1

    you are our savior bhai. Sharing this level of content for free is something really great from you.

  • @rockingbeast3651
    @rockingbeast3651 3 роки тому +2

    why g was not taken. in the reverse of string g is also present

  • @rajatgupta7488
    @rajatgupta7488 4 роки тому +10

    1:36 Style hai bhai ka Style!!!!!

  • @shrayanshjakar6707
    @shrayanshjakar6707 2 роки тому +1

    Your teaching skills and logical reasoning is on next level sir

  • @mudrasurana404
    @mudrasurana404 4 роки тому +4

    Your explanations are amazing.Can you please make a series on trees and strings as well.Would be very helpful.

  • @yeerojcodes3020
    @yeerojcodes3020 4 роки тому +3

    Bhai vdo no 27 is no longer available ....plz update the list

  • @srushtipawar7738
    @srushtipawar7738 4 роки тому +10

    Great video series:)
    Please make video on "Longest Palindromic Substring" as well

    • @prateekchs
      @prateekchs 3 роки тому

      Like Longest Common Subsequence is to Longest Palindromic Subsequence, It is Longest Common Substring to Longest Palindromic Substring

    • @prateekchs
      @prateekchs 3 роки тому +2

      Sorry, above approach will fail for "abcdba"

    • @abhinandanb3591
      @abhinandanb3591 3 роки тому

      @@prateekchs exactly! so whats the soln?

    • @rajshah9129
      @rajshah9129 2 роки тому

      Yes but why it is not working like lcsequence work for lpsequence
      Lcsubstring should also work for lpsubstring

  • @prakhargupta5720
    @prakhargupta5720 3 роки тому +1

    u made me this ... before seeing the video i knew the answer, i cant thank u even. I dont know either u r great or not but the thing is ur conept made me this. definitely i would suggest your videos to everyone.

  • @asadnaqvi9736
    @asadnaqvi9736 4 роки тому +6

    I never ever watch this kind of explanation its superb bro but please upload further videos like
    Sorting and so on, please upload 🙏

    • @TheAdityaVerma
      @TheAdityaVerma  4 роки тому +4

      Thanks, Will upload soon. Please share to help this channel grow.

    • @asadnaqvi9736
      @asadnaqvi9736 4 роки тому

      @@TheAdityaVerma sure and I have been waiting for further videos
      Thanks

  • @rishabhjaiswal1486
    @rishabhjaiswal1486 4 роки тому

    Your observations are just lit,,never seen someone generalising every problem and connecting to some other problem like you are doing,,Hattssss offffff bro!!!!

  • @harshdeepsingh6768
    @harshdeepsingh6768 4 роки тому +1

    This is surely the best content online for dynamic programming. Really thankful to you bhaiya.

  • @shahkrimabrijesh4650
    @shahkrimabrijesh4650 3 роки тому

    Man its day-4 for me watching it from video-1 and this is like a blessing for we dp learners. And we are so thankful that u kept these for free, somebody else might have kept high prices for these. For dp from which i was so scared, I m excited nowadays.

  • @akashsaxena9542
    @akashsaxena9542 3 роки тому +6

    The way he explains is so good that it's messing the way I think...😲💯

    • @TheAdityaVerma
      @TheAdityaVerma  3 роки тому +24

      I am going to plan an idea in your head without you knowing it.
      I hope you have watched inception :P

    • @hrushikeshpatil3772
      @hrushikeshpatil3772 3 роки тому +1

      @@TheAdityaVerma please put the 27th video

  • @Vishal-ds6ly
    @Vishal-ds6ly Рік тому

    I solved it without seeing your video you teach so well man hats off to you.

  • @harshitasingh963
    @harshitasingh963 3 роки тому +1

    The logic of this question is simply beautiful!

  • @gunishmatta
    @gunishmatta 3 роки тому

    Your videos have developed my thinking in DP...I was able to guess that we have to reverse the string way before you told...Thanks man...best playlist on DP

  • @thelegend5248
    @thelegend5248 4 роки тому +7

    Bro.. what microphone, camera and stick u use to keep in such position can you say? It's nice and interesting!! 😇

    • @TheAdityaVerma
      @TheAdityaVerma  4 роки тому +3

      Brother tbh I dont remember now what I ordered !!

    • @hrushikeshpatil3772
      @hrushikeshpatil3772 3 роки тому +2

      @@TheAdityaVerma please put the 27th video again

  • @manojkumar-dv8pf
    @manojkumar-dv8pf 8 місяців тому +2

    I think we cannot solve the longest palindromic substring problem using LCS pattern.
    example: str: abcdba, it's reverse it 'abdcba` . if we find longest common substring then it will be 'ab' or 'ba' and both are not palindromes.

  • @SujitKumar-sr5cq
    @SujitKumar-sr5cq 4 роки тому +1

    I came this channel to watch one video but one by one i watched whole playlist
    Amazing explanation
    very helpful videos brother

  • @himanshukhairajani
    @himanshukhairajani 4 роки тому

    I can't contain myself to NOT like your videos.....
    Sir you might not even know but you are doing WONDERS in student's life...
    College doesn't even provide 10% of what you do in minutes !
    A big THANKYOU @Aditya Verma Sir !

  • @thedataguyfromB
    @thedataguyfromB 3 роки тому +1

    @Aditya
    Tu toh deo manush hai re baba
    Thank you so much Aditya sir
    Apne Bhai jaisa koi hardich nahi

  • @rohitjoshi6335
    @rohitjoshi6335 4 роки тому +5

    can we solve longest-palindromic-substring using lcs?

  • @sahilanand30
    @sahilanand30 3 роки тому +3

    Even striver bhaiya recommended this pure gold :)

  • @VishalYadav-dx5zp
    @VishalYadav-dx5zp 4 роки тому +1

    Awesome bro!! I am following you from 1st video and you make dynamic programming so easy for us. Thanks a lot....

  • @abhishekdhok5245
    @abhishekdhok5245 3 роки тому +6

    3:30
    That emotion😂🔥

  • @placidnick100
    @placidnick100 3 роки тому +9

    can you also do explanation on: Longest Palindromic Substring plz

    • @anishapandey4037
      @anishapandey4037 3 роки тому

      That's actually just parallel use of longest common substring instead of Longest common subsequence.

  • @vidyaprakashawasthi4535
    @vidyaprakashawasthi4535 3 роки тому +3

    Video on "PRINTING LONGEST PALINDROMIC SUBSTRING" plzzzzzzzzzzz...

  • @muskantrisal5355
    @muskantrisal5355 4 роки тому

    Thank youuuu sooo much sirrr!!😍😍😍. This playlist is a gem and so are you !😍

  • @rahatkhanpathan8939
    @rahatkhanpathan8939 4 роки тому +3

    27th is missing in this playlist, it says it's private. Please take a look

  • @appliedai6452
    @appliedai6452 4 роки тому +2

    @Aditya Verma Can I use the same technique to solve for Longest Palindromic substring?

  • @aanchalsharma5264
    @aanchalsharma5264 4 роки тому

    thanks brother
    u are gem
    watched your 25 videos and all are just amazing !!!!

  • @shivamarora7050
    @shivamarora7050 4 роки тому

    Bro... hats off to you seriously.... No one can explain better than you.

  • @shubhampawar456
    @shubhampawar456 2 роки тому

    the main thing i have learned from you is analysing the question and i have did that thanks a lot brother

  • @poojaarora7268
    @poojaarora7268 3 роки тому +1

    Thank you so much Aditya sir , this is a lifesaver playlist for placement students who are afraid of topics like DP ....after this i am able to solve questions like a pro !!

  • @bhajanbarman6142
    @bhajanbarman6142 3 роки тому +1

    Bhaiyaa mazaa a gayaa!!!! DP is no more a hard topic. I have gone through your video thoroughly with a speed of 0.75 including ohh f**k @3:25 ...............Graph ka bhi banaa do bhaiyaa

  • @ryanryan6567
    @ryanryan6567 4 роки тому

    Bhai Kya Mast Pdhaata hain yaar tu. Literally Neend aarhi thi DP ki yeh video dekhni shuru ki Sab Gayab. Maza Aagya Bro.
    Aur Yeh 4 Dislikes waale Sudhar Jaoo yaar Bhaiya itni mehnat krrhe so Like nhi krna plz dislike to mat kro
    Waiting for the Next Graph Series :)

  • @VishalKumar-xr4nm
    @VishalKumar-xr4nm 2 роки тому

    I figured out the algorithm just after 20 sec in this video, after watching all your previous videos. THANKS. ✅✅👌👌

  • @gautamgoel2024
    @gautamgoel2024 2 роки тому +1

    this playlist is similar to a web series , If you miss any episode then you wont be able to understand the next lecture. love you sir. deep respect for you.
    par meri ek shikayat hain , ab aap videos kyu nahi banate aap ek aditya verma dsa parent of all courses nikaliye chahe paid pls , aaap se hee padhna chahte hain.

  • @suyash4605
    @suyash4605 11 місяців тому

    You are truly a great teacher, after watching all these videos, I knew how to solve this question just by reading the problem statement.
    All credits to you legend ❤

  • @keshavraghav3896
    @keshavraghav3896 2 роки тому

    Submitted this question before watching the whole video...!!!
    power of aditya verma's dp playlist.

  • @mohitmajithia2687
    @mohitmajithia2687 4 роки тому +1

    why 27 th video is not showing?

  • @anshumangogate4806
    @anshumangogate4806 2 роки тому

    I first solved this question by watching the explanation of some another channel, I'm simply amazed to see this solution. It is far more logical and easy.

  • @VIKASKUMAR-bh5sj
    @VIKASKUMAR-bh5sj 4 роки тому +2

    I tried to print the longest palindromic sequence after solving this, but it is giving some uncertain results..help out..!! maybe because while backtracking if t[i-1][j] == t[i][j-1]....is there anything i am missing.?

  • @pavankaranam7469
    @pavankaranam7469 Рік тому

    The best DP series

  • @chiranjeetmandal5540
    @chiranjeetmandal5540 3 роки тому +1

    How to say thanks to you I don't know. your videos are so interesting that makes me interest in programming . love you bro

  • @gayathritangirala8552
    @gayathritangirala8552 Рік тому

    Damn!!! what a logic man! hats off literally!

  • @rangapavankumar79
    @rangapavankumar79 3 роки тому

    I am following this playlist for palindrome I saw various approaches on various sites but this is wonderful

  • @yogendrasrivastava3850
    @yogendrasrivastava3850 3 роки тому

    Bro if UA-cam has it own museum they should save this playlist for our future generations...bhaisahab keher ...

  • @superfact4556
    @superfact4556 3 роки тому +1

    Keep uploading sir
    It helps us a lot
    Thanks for making this type of contents

  • @anug14
    @anug14 2 роки тому

    i was able to identify the approach fairly quickly. I myself am surprised. Great resource. It's the way you are repeating and stressing on the approach and how to think is what is making this playlist such great thing. You should maybe dub this in English too for wider reach. Would also be helpful to add the problem links of leetcode or other platforms, where we can practice the problem in description if possible. I prefer leetcode, you know why :). Its just convenience.

  • @marvel438
    @marvel438 4 роки тому +3

    You should make your own merch "Acha... Theek Hai"

  • @HimanshuYadav-yj4to
    @HimanshuYadav-yj4to 3 роки тому +1

    Viewers - Who's your DADDY?
    DP - Knapsack and LCS!

  • @AJ-gg1jc
    @AJ-gg1jc 4 роки тому +1

    thanks sir now i am able to create dp code by my own..... even after solving a problem i do watch video for satisfaction... 🤩

  • @adityamaurya9277
    @adityamaurya9277 4 роки тому

    I could think of solution before starting the video. your explanation is great!!

  • @akshatsharma6879
    @akshatsharma6879 3 роки тому

    Brother, this playlist is gem !!

  • @pramitdeepkaur5418
    @pramitdeepkaur5418 2 роки тому

    Great content!! Please keep making videos like these!

  • @abhinandanb3591
    @abhinandanb3591 3 роки тому +2

    Soln for "Longest Common Palindromic Substring" in java in leetcode
    Brute force method:
    class Solution
    {
    public String longestPalindrome(String s)
    {
    if(s.length()