category

Two Pointers

Walk a pair of indices inward (or together) to avoid nested loops.

Container With Most Waterinteractive

Pick two walls that trap the most water — one linear two-pointer pass.

Medium
3Suminteractive

Find every unique triplet that sums to zero — sort, then two-pointer.

Medium
Trapping Rain Waterinteractive

Sum the water trapped between bars — two pointers, O(1) space.

Hard