A window that grows and shrinks over a sequence to track a running condition in linear time.
A window — a contiguous subarray or substring — expands and shrinks as it moves across the input, so you track a running condition instead of recomputing it from scratch for every possible window.
Blind 75 (4):
More from Blind 150 (2):