Fixed window
O(n)Keep exactly k items. Each step adds the new item on the right and removes the old one on the left.
Reach for it when the window size is given and you compare every slice of that length.Go deeper: Sliding windows: reuse the work you just did