Тёмный

Coding Interview Question | Longest Common Subsequence | Dynamic Programming with space optimization 

Keerti Purswani
Подписаться 141 тыс.
Просмотров 6 тыс.
50% 1

Опубликовано:

 

16 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 36   
@argonlaser2775
@argonlaser2775 3 года назад
I usually am comfortable with memoization and I try to use that in every interview. Now that you explained clearly the DP solution, I am going to learn more about this. Thanks a lot.
@RP-qv9sc
@RP-qv9sc 3 года назад
amazing content such an easy explaination of space optimization
@sheikhmkrifat7749
@sheikhmkrifat7749 2 месяца назад
Thanks a lot for clear and nice explanation
@calm8515
@calm8515 4 года назад
As a begineer, after watching this video, got clarity😀, thank you, beauty with brain 🤍
@BlokeBritish
@BlokeBritish 2 года назад
u got zero clarity
@AbhishekSingh-op2tr
@AbhishekSingh-op2tr 4 года назад
Great explanation, thanks! Please add the leetcode link with the same problem title as there, video's search rank will also improve.
@KeertiPurswani
@KeertiPurswani 4 года назад
Have added the LeetCode, InterviewBit and HackerRank links in all my videos. Thanks :)
@sneha_2005
@sneha_2005 4 года назад
Thanks a lot. This video really helped. Keep making more videos.
@KeertiPurswani
@KeertiPurswani 4 года назад
Many coming up! :)
@amg6950
@amg6950 2 года назад
If we do the space optimization, would we be able to print the LCS if asked? i think not
@shubhampokhriyal8491
@shubhampokhriyal8491 4 года назад
Awesome mam you know the core concepts of problem..
@sim77778777
@sim77778777 4 года назад
very well explained. Thanks for making these videos.
@rohitchakraborty1715
@rohitchakraborty1715 3 года назад
Thanks for creating this! Really helped a lot! For the space optimised solution, how to find the LCS elements (like we traversed from the last to first cell in the grid)?
@AvanishRaju
@AvanishRaju 2 года назад
Whenever the character from both the strings is the same, we can add it to a buffer (Like StringBuilder in java, or char array in C++, etc.) - by the time we reach the end, it will have our LCS string value.
@geeksentertainmentmedia4827
@geeksentertainmentmedia4827 4 года назад
Ohhh..aise hota tha..."EPIPHANY"
@akbar55555shaikh
@akbar55555shaikh 3 года назад
You have well explained the DP initialization values and which cell to add or from which cells to consider max. Great work, Keerti.
@KeertiPurswani
@KeertiPurswani 3 года назад
Thanks. I hope you like rest of my content as well 😇😇
@BlokeBritish
@BlokeBritish 2 года назад
ghanta well explained.
@ANKIT1963
@ANKIT1963 3 года назад
Great Work! Thanks for your video.
@KeertiPurswani
@KeertiPurswani 3 года назад
Thanks Ankit. Means a lot 😇😇
@kunalmodi6814
@kunalmodi6814 3 года назад
nice explanation. Really liked the video. thank you
@KeertiPurswani
@KeertiPurswani 3 года назад
Thanks Kunal. Hope you like rest of the videos as well! 😇😊
@balasundaramavudainayagam8053
@balasundaramavudainayagam8053 4 года назад
Been following your videos. Very nice and clear. Can you do videos on leetcode problems? TIA
@KeertiPurswani
@KeertiPurswani 4 года назад
All the questions that I am discussing are on leetcode. I will add the links in the description :)
@stormz4040
@stormz4040 2 года назад
Thank you
@angadyadav9067
@angadyadav9067 4 года назад
Nice explanation. 🙂 This is for only to get length right? We can not get the lcs string from space optimization approach?
@KeertiPurswani
@KeertiPurswani 4 года назад
yes, you are right. You need all the entire matrix to backtrace but usually, the length is asked in the interviews. Check out the LeetCode and InterviewBit links that I have added. :)
@AvanishRaju
@AvanishRaju 2 года назад
@@KeertiPurswani Whenever the character from both the strings is the same, we can add it to a buffer (Like StringBuilder in java, or char array in C++, etc.) - by the time we reach the end, it will have our LCS string value.
@siwi_drake4703
@siwi_drake4703 3 года назад
I love u
@karthikkaushik7559
@karthikkaushik7559 Год назад
One question if both strings are null isn’t that a common subsequence? Pls can someone clear this for me rest all I was able to understand but the first point is not clear.
@abdulshaikz
@abdulshaikz 2 года назад
@01:25 [ CED ] is not a subsequence its [ CEB ]
@aniketmehendale
@aniketmehendale 4 года назад
ced isnt a common subsequence, right?
@KeertiPurswani
@KeertiPurswani 4 года назад
Yes that was a mistake. I have added that in description as well. Can't change the video once uploaded. Sorry for the confusion caused.
@ashutoshtomar6473
@ashutoshtomar6473 3 года назад
space=O(N) plz do it .
@BlokeBritish
@BlokeBritish 2 года назад
speak clearly lady u r eating up ur words
@raj_kundalia
@raj_kundalia Год назад
thank you
Далее
Longest common subsequence | Leetcode #1143
18:45
Просмотров 60 тыс.