
Given two strings s and t, compute the length of their longest common subsequence (LCS).
A subsequence is obtained by deleting zero or more characters from a string without changing the relative order of the remaining characters.
s
and
t
(may be empty)
s
and
t
s = "abcde"
,
t = "ace"
→ output
3
("ace")
0 <= len(s), len(t) <= 2000