10. Longest Common Subsequence
My Approach
Explanation with Example
s1 = "AGGTAB"
s2 = "GXTXAYB" 0 0 0 0 0 0 0
0 0 1 1 1 1 1
0 1 1 1 1 2 2
0 1 1 1 1 2 2
0 1 1 2 2 2 2
0 1 1 2 2 3 3Time and Auxiliary Space Complexity
Code (C++)
Contribution and Support
Last updated