Striver A2Z · 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.

Sheet Problems: 2
Category: Two Pointers
ℹ

Curated selection from Striver A2Z

This sheet features 2 problems testing this technique. For the complete collection of problems and detailed algorithmic intuition, visit the Two Pointers (Same Direction) Pattern Guide.

Featured Problems (2)

Explore More Patterns in Striver A2Z

Track your progress across all 243 problems in this curriculum roadmap.