Sliding Window Cheatsheet Template
Template 1: Sliding Window (Shrinkable)
Key Idea
Start with an initial window [i, j] and expand it by incrementing j.
Whenever the window becomes invalid, shrink it by incrementing i until it is valid again.
Keep track of the maximum size of the v...
himanshukumardatastructurealgorithm.hashnode.dev5 min read