Here, Are 4 Different Pattern of problems where we can see. when it come to use these both approaches
- Constant Window
- Longest Subarray / Substrings with sum ≤ k
- No. of Subarray where <Condition>
- Shortest minimum Window
Maximum Points You Can Obtain from Cards
Longest Substring Without Repeating Characters
Max Consecutive Ones III