1/45
Loading...
🎯Longest Common Subsequence
Find the longest subsequence common to both strings! • String 1: "EARTH" • String 2: "HEART" "Subsequence" = Keep order, but not necessarily consecutive!
🔒
Loading...
Find the longest subsequence common to both strings! • String 1: "EARTH" • String 2: "HEART" "Subsequence" = Keep order, but not necessarily consecutive!
LCS finds the longest subsequence common to two strings while maintaining order. A "subsequence" doesn't need to be contiguous - just keep the original order.