Skip to content

Glossary: Algorithms Beyond the Basics in Java

sliding window

Also written: window

A run of neighboring items that moves along an array, updating a running total by adding the new item and dropping the old one. Windows can have a fixed size or grow and shrink.

Where the book teaches it

Related terms

two pointers