- Start with a 'fast' pointer and a 'slow' pointer
- Once you have a valid substring within the fast pointer then: you start shrinking the slow until you have a valid substring.
- BitFlip
- Min. Window Substring
- Consecutive Subarray Sum
- Start with a 'fast' pointer and a 'slow' pointer
- Once you have a meet a valid condition at fast pointer then: the slow pointer "jumps" to the fast position.
- Max Consecutive Sum.
- Buy & Sell Stocks
- The slow pointer here is lagging behind, keeping track of the choices made. (Hueristics)
- House Robber
- The two pointers are coming from oppositing directions across a linear path.
- Rainwater
- Sorted Two Sum