2 Pointers - Sliding window - Templates
A sliding window keeps track of a continuous part of an array or string. The pointers l and r mark its boundaries; its length is r - l + 1.
Pattern 1 - Fixed-size window
Example: Find the maximum suba
chetan77.hashnode.dev5 min read