Two PointersEvidence Contributing
Two Pointers (Same Direction)
A read/write or slow/fast pair of pointers moving the same direction through a sequence, compacting or scanning in place.
Practice Problems: 6
Difficulty: 3 Easy·3 Medium·0 Hard
Core technique
Review the technique, then try the mapped problems below. The right approach depends on each problem's constraints.
- Core Strategy: A read/write or slow/fast pair of pointers moving the same direction through a sequence, compacting or scanning in place.