Given two strings, print their longest common subsequence. If there are multiple, any one is acceptable.
{ "s1": "AGGTAB", "s2": "GXTXAYB" }
"GTAB"
{ "s1": "ABCDGH", "s2": "AEDFHR" }
"ADH"
{ "s1": "acbcf", "s2": "abcdaf" }
"abcf"
Sign in to Run Code and Submit