- Two pointers is a technique where you use two pointers that either move towards each other or away from each other.
- Two pointers is used when you need to find a set of elements that fulfill certain constraints.
- Using two variables.
- O(n)
- O(1)
- Valid Palindrome | Easy | Solution | Problem Description
- Two Sum II - Input array is sorted | Easy | Solution | Problem Description
- 3Sum | Medium | Solution | Problem Description
- Container With Most Water | Medium | Solution | Problem Description
- Trapping Rain Water | Hard | Solution | Problem Description
Category: Two Pointers
Status: Done
Author: David Bujosa