Longest Palindromic Subsequence | Using Blue Print | DP On Strings | Leetcode 516 | DP Concepts - 25

Sdílet
Vložit
  • čas přidán 27. 07. 2024

Komentáře • 16

  • @HimanshuSingh-mt4tg
    @HimanshuSingh-mt4tg Před 27 dny +6

    Thank you for the making coding more interesting lvyu 3000❤

  • @tanishchordia4813
    @tanishchordia4813 Před 26 dny +3

    Thank you mik you are truly a gem of a person You literally took our request seriously and started the dp concepts and questions playlist again. Mik We all seriously love you.❤

  • @Engineeringlife651
    @Engineeringlife651 Před 27 dny +1

    Bhaiya can you bring a course on dsa the way you explain the topic everything becomes crystal clear

  • @souravjoshi2293
    @souravjoshi2293 Před 27 dny

    thanks a lot

  • @jiteshsingh98
    @jiteshsingh98 Před 27 dny +1

    😍

  • @Believe_yourself-eo1ho

    Please upload more videos as soon as possible

  • @EB-ot8uu
    @EB-ot8uu Před 27 dny

    thank you so much for continuing this playlist. much needed

  • @gauravbanerjee2898
    @gauravbanerjee2898 Před 27 dny +1

    Thanks a lot bhaiya ❤❤

  • @wearevacationuncoverers

    guruji aap dhany ho

  • @rushikeshkadam7768
    @rushikeshkadam7768 Před 26 dny

    Bhaiya, i am following your graph concepts and questions playlist.
    can you provide pdf notes of that playlist, it will be very helpful.
    Thank you such amazing videos.

  • @CODDING.A
    @CODDING.A Před 27 dny

    82. Remove Duplicates from Sorted List II ---- sir please solve this problem

  • @AdarshGupta-dn5bx
    @AdarshGupta-dn5bx Před 27 dny

    Bhai, pls complete this only first. You make concepts extremely clear. I'll be highly thankful if you complete it first 🙏

  • @jiteshsingh98
    @jiteshsingh98 Před 27 dny +1

    Khata Khat Khata Khat Khata khat😂

  • @priyanshusain2274
    @priyanshusain2274 Před 27 dny

    Please make a video for problem no 2477

  • @dayashankarlakhotia4943
    @dayashankarlakhotia4943 Před 27 dny +1

    public int longestIdealString(String s){
    char[]c=s.toCharArray();
    int n=c.length;
    int[]dp=new int[n];
    dp[0]=1;
    for(int i=1;i=0;j--){
    int next=dp[j];
    if(c[i]==c[j]){
    dp[j]=2+max;
    }
    max=Math.max(max,next);
    }
    }
    int maxLen=0;
    for(int i:dp)
    maxLen=Math.max(maxLen,i);
    return maxLen;
    }
    tc=(n*n)
    Sc=(n);
    this is space optimization code🎉❤