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.❤
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.
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🎉❤
Thank you for the making coding more interesting lvyu 3000❤
Love you all 3000 ❤️
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.❤
Bhaiya can you bring a course on dsa the way you explain the topic everything becomes crystal clear
thanks a lot
😍
Please upload more videos as soon as possible
thank you so much for continuing this playlist. much needed
Thanks a lot bhaiya ❤❤
guruji aap dhany ho
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.
82. Remove Duplicates from Sorted List II ---- sir please solve this problem
Bhai, pls complete this only first. You make concepts extremely clear. I'll be highly thankful if you complete it first 🙏
Khata Khat Khata Khat Khata khat😂
Please make a video for problem no 2477
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🎉❤