Loading...
Loading...
Loading Curriculum...
Loading Subject...
Loading Topic...
Loading Lesson...
Loading Lab...
Sliding window is a method for finding subsets of data (subarrays or substrings) that satisfy certain conditions efficiently.
Instead of recomputing the entire window every time, you "slide" it by adding the new element at the front and removing the old one from the back. This maintains the result in **O(1)** per slide.