Interactive DSA and system design

Learn complex engineering ideas by watching them move.

48stepsO(n*m)averageO(n*m)space

DP lab

LCS 2D Matrix Optimal Trace Flow

Step 1 / 48
LONGEST
S
T
O
N
E
Referencing Cell Active Cell Selected Base Optimal Path
Space play / pause stepR reset