Finds the longest subsequence common to two sequences.
Step 1 of 18
Find the Longest Common Subsequence of "ABCDE" and "ACE". Build a (6)×(4) table bottom-up.
Legend
dp[i][j] = length of LCS of the first i characters of "ABCDE" and the first j characters of "ACE".