Longest Common Subsequence
Return the length of the longest subsequence (not necessarily contiguous) common to a and b.
Examples
EXAMPLE WALKTHROUGHthree letters
A guided view of the published example, not a trace of your code.
INPUT
["abcde","ace"]TASKlongest_common_subsequence()
EXPECTED OUTPUT
3Start with the input values shown in this example.
Example 1 of 3
Input: a = "abcde", b = "ace"
Output: 3
Explanation: three letters
Input: a = "abc", b = "abc"
Output: 3
Explanation: identical
Input: a = "abc", b = "def"
Output: 0
Explanation: nothing shared
Hint 1
Fill a (len(a) + 1) x (len(b) + 1) table row by row.