BEGINNER · 3 PRACTICE PROBLEMS
Two Pointers
Two positions. One elegant solution.

THE CORE IDEA
Two pointers
Move inward from both ends, or move two pointers at different speeds.
O(n)A good place to practice
Start simple, then build up to the next challenge.
| Solved | Problem | Difficulty | Topic | Acceptance | Bookmark |
|---|---|---|---|---|---|
| 3Sum | Medium | Two Pointers | 36.6% | ||
| Valid Palindrome | Easy | Two Pointers | 50.7% | ||
| Container With Most Water | Medium | Two Pointers | 58.1% |