Longest Increasing Subsequence (Dynamic Programming)

preview_player
Показать описание
Find longest increasing subsequence using dynamic programming.
Рекомендации по теме
Комментарии
Автор

thank you so much! it was an excellent explanaition!

Lisa
Автор

thank you bro
after watching 5 videos related to LIS
i came here and get a clear explanation thank you so much

vishnuv
Автор

Finally i found a proper explaination. Thanks 💖

zannatprome
Автор

sir i had watched more than 10 videos and read many blogs but i didnt understand...but now i understood :)

rahulkumargupta
Автор

Excellent explanation!! Thanks for making it easier to understand and making a complete video.

AnandaMGhosh
Автор

Hats off of your videos! Clearly and neatly explained. Good job Vivek

balajibala
Автор

I like your style, your explanations are much clearer than others'. Thanks!

ericfricke
Автор

You are really great!! Thank you so much. No more words to express...You explained it the best way possible

abhijithvs
Автор

m-ai salvat de o restanta, mersi fain coaiemiu, ai o bere!!!

andreiardelean
Автор

WOW, you gave the best explanation for LIS. All your lectures are super! Thanks lots!

chrisogonas
Автор

Thank you very much .
i did not understand in the class but you are the who help me to feel happy

i appreciate your effort

ramadanaxmed
Автор

Lots of thanks for your explanation. I did the code according it:

public int lengthOfLIS(int[] nums) {
int n = nums.length;
int[] l = new int[n];
int[] idx = new int[n];
int max = 1;

for (int i = 0; i < n; i++){
l[i]=1;
int j = 0;
while(j < i){
if (nums[i]>nums[j]){
int temp = l[j]+1;
if (temp >= l[i]){
l[i]=temp;
idx[i]=j;
}
}
j++;
}
max = Math.max(max, l[i]);

}
return max;
}

leereid
Автор

Amazing best explanation i have seen so far.

shyam
Автор

ur way of teaching is too easy to understand. Thank you, so much!

jeyavanicm
Автор

Awesome video! All explained very carefully and clearly.

davidkreft
Автор

Very thorough explanation. Pro tip: Watch at 1.5x speed :)

MiralkumarPatel
Автор

Very beautiful explaination.thank you so much

mohammedsuhailbasha
Автор

WONDERFUL explanation sir !
This video helped me a lot👍

fabulouscsk
Автор

excellent explanantion and hatsoof for ur tireless efforts ..worthy video compared to all other on this topic..keep continuing sir

kavithapriyacj
Автор

Thank you so much! Really appreciate your effort in explaining the algorithms in such depth. :)
I usually watch your videos for the algorithms and it has helped me a lot.

aishwaryasingh