How it works
Opposite ends
Start one pointer at each end and move them inward, common for sorted-array pair and palindrome problems.
Fast and slow
Move pointers at different speeds to detect cycles or find midpoints in linked lists.
When to use it
Prefer it on sorted data or in-place rearrangement where a nested loop would be O(n squared).