Skip to content

Glossary: Coding Interviews in JavaScript

Sliding window

Also written: window

A run of neighboring items from `left` to `right` that moves along the array, with a running total updated as items enter and leave. A variable window grows with `right` and shrinks from `left` while over a limit.

Where the book teaches it

Related terms

Two pointersPrefix sum