Longest Common Subsequence | Part 1 | Dynamic Programming | Interview Question(LeetCode #1143)

preview_player
Показать описание
In this video I have covered the method of solving the Longest Common Subsequence Problem using Dynamic Programming. This is the first part of the video on LCS. In the second part I will cover the code for optimizing the space complexity further. Do go through the video and try the question yourself before looking at the coding part.

→ Topic - Dynamic Programming
→ Space complexity - O(n*m)
→ Time complexity - O(n*m)

__________________________________________________________________________

SUBSECTIONS
Intro : (0:00)
Question Overview (Reading the question) : (0:03)
In-depth Analysis (Dry running example problem) : (3:41)
Code it (Coding Solution) : (14:52)
Space-Time Complexity ( Isn’t it obvious?) : (17:56)

_________________________________________________________________________

Follow me on social media:

________________________________________________________________________

Also comment below questions you want me to cover next or any other suggestions or doubts are welcome?

#leetcode #C++ #programming #coding #interviewquestions #SuyashiSinghal #LCS #LongestCommonSubsequence #dynamicprogramming #dsa #dp
Рекомендации по теме
Комментарии
Автор

Nice and clear DP walkthrough of LCS algorithm.
Many thanks!!

CostaKazistov
Автор

Very well explained!! Thanks for making this amazing video👏

AnshulYadav-osmw
Автор

Please upload more videos, your way of teaching is very awesome. Thanks

Polly
Автор

hi can you make a video on regular expression matching and it will be great if u can start with the recursive approach and then move to tabulation one. thanks

ritwik
Автор

Please don't jump directly to 2D matrix. Explain the intuition first. I hope this helps!

LearnCodeHS