Opening page…
Moving two indices toward or alongside each other to prune a quadratic search.
Solved
| Solved | # | Problem | Pattern | Level | Preview |
|---|---|---|---|---|---|
| 1 | Valid Palindrome | opposite ends | Easy | ||
| 2 | Remove Duplicates from Sorted Array | slow and fast · in-place | Easy | ||
| 3 | Merge Sorted Array | merge · backward fill | Easy | ||
| 4 | Two Sum II - Input Array Is Sorted | opposite ends · sorted input | Medium | ||
| 5 | 3Sum | sort + two pointers · dedup | Medium | ||
| 6 | Container With Most Water | opposite ends · greedy elimination | Medium | ||
| 7 | 4Sum | sort + two pointers · dedup | Medium | ||
| 8 | Trapping Rain Water | opposite ends · running max | Hard |
Showing 1–8 of 8 problems