Guided lesson

Two Pointers

Arrays

See the input

Beginner

Input for Two Pointers: Move two indexes through an array to shrink, expand, or compare a search region.

4
0
8
1
11
2
15
3
19
4
24
5
left: 0 right: 5
Step 1 O(n) time - O(1) 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