Longest Common Subsequence & Diff

medium
Unit 11 · Dynamic Programming I0/2 to milestone

The longest common subsequence (LCS) of two sequences is the longest sequence that appears in both, in order but not necessarily contiguously. It's how diff and git find what changed between two files.

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Longest Common Subsequence & Diff · TechGradify