AlgoViz

Sliding window (variable size)

medium 20 min

A variable sliding window keeps a contiguous range [left, right] that grows on the right to explore and shrinks on the left whenever a validity rule breaks.