Longest Common Subsequence (LCS) — Complete Guide
This will be a complete deep understanding guide so you can use LCS intuition for many DP problems. Subsequence vs Substring Problem Definition Given two strings. Find the length of the longest subsequence common to both strings. Brute Force Thinking (Important for intuition) At each character we have two choices Key Insight Compare characters: text1[i] … Read more