Use top-down dynamic programming (memoization) to efficiently find the length of longest common subsequence between two sequences.
{
"s1": "AGGTAB",
"s2": "GXTXAYB"
}4{
"s1": "ABCDGH",
"s2": "AEDFHR"
}3{
"s1": "ABC",
"s2": "AC"
}2Sign in to Run Code and Submit