Guided lesson

Longest Increasing Subsequence

Dynamic Programming

See the input

Intermediate

Input for Longest Increasing Subsequence: Track the smallest possible tail value for increasing subsequences of each length.

0
1
2
3
4
2
3
4
5
6
4
5
6
7
8
6
7
8
9
10
Step 1 O(n log n) time - O(n) 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