04 Try it yourself Interactive
Same list, same k, two versions. Switch tabs and keep one eye on the operations counter. The amber band is the current window, the amber bar is the element being added, and a rose bar just outside the band is the element that has left. Next moves one step; nothing runs on its own.