Two Pointers pattern
The markers can start together, begin at opposite ends, or move at different speeds.
Difficulty: Medium · Approach: One fixed + two moving
Open Algorithm Atlas to watch the full interactive lesson and follow every execution step.