Skip to content

Glossary: Algorithms Beyond the Basics in Go

Sliding window

Also written: window

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

Where the book teaches it

Related terms

Two pointersSlow and fast pointers