Two Pointers
Ways to identify
- Sorted array
- Question askes to find a pair, triplet or subarray (if subarray, a better way would be to use Sliding Windows)
Time complexity
- depends on the question
Notes
- If it's singly linked list, consider using Fast and Slow pointers