Longest common subsequence

medium

The table gives the length; the traceback gives the subsequence. This is the algorithm behind `diff`, DNA alignment and plagiarism detection.

Worst O(m × n)Space O(m × n)
Loading the longest common subsequence engine…

Where to go next