Guided lesson

Longest Common Subsequence

Dynamic Programming

See the input

Intermediate

Input for Longest Common Subsequence: Compare prefixes of two strings and reuse overlap between states.

0
1
2
3
4
2
3
4
5
6
4
5
6
7
8
6
7
8
9
10
Step 1 O(nm) time - O(nm) space
Guided progression
6% lesson
Step 1 / 2Learner goal
Speech settings Speed 1.0 · Volume 90%

Keyboard: Space play/pause · Arrow keys step · Page Up/Down change sections · R restart