Loading...
Given two strings, return the length of their longest common subsequence (LCS). A subsequence maintains relative order but needn't be contiguous.
abcde ace
3
abcde and ace, and we need to find their longest common subsequence (LCS).a, c, and e.