Longest Common Subsequence
Find the longest common subsequence (LCS) among to array of numbers/characters.
Example:
The optimal solution is a DP solution with time complexity O(MN)
and space complexity O(min(M, N))
.
Problems
Last updated