Back to Home

Two Pointers

The two pointers technique uses two references to traverse data structures efficiently. Common patterns include converging pointers on sorted arrays, fast/slow pointers for cycle detection, and left/right pointers for partitioning.

10
Problems
5
Easy
3
Medium
2
Hard