Skip to content

Glossary: Coding Interviews in Rust

Sliding window

Also written: window, window_total

A run of neighboring items from `left` to `right` that moves along a list. You keep a running total, adding what enters and subtracting what leaves, and a variable window grows with `right` and shrinks with `left`.

Where the book teaches it

Related terms

Prefix sumTwo pointers