Step 1/0
Custom array:
Complexity
Best:O(m·n)
Average:O(m·n)
Worst:O(m·n)
Space:O(m·n)
Description
Finds the longest subsequence present in both strings in the same relative order (not necessarily contiguous).
When to use
Diff tools (git), spell checkers, bioinformatics (DNA comparison), version control systems.