| Technique | When to Use | Time |
|---|---|---|
| Two Pointers | Sorted arrays, palindromes, pair finding | O(n) |
| Sliding Window | Contiguous subarrays/substrings with constraints | O(n) |
| Binary Search | Sorted data, finding boundaries, optimization | O(log n) |
| Prefix Sum | Range sum queries, subarray sums | O(1) query |
| Sorting | Simplify comparisons, enable two pointers | O(n log n) |