Skip to content

Glossary: Algorithms Beyond the Basics in Rust

Sliding window

Also written: window

A run of neighboring items that moves along a slice, updating the running total by adding the new item and dropping the old one. It can be fixed in size, or grow and shrink.

Where the book teaches it

Related terms

Two pointersSlice