Data Structures & Algorithms

Sliding Window

/ˈslaɪdɪŋ ˈwɪndəʊ/

Definition

An algorithm pattern processing a fixed-size or variable-size sub-array by moving the window one step at a time.

Example in context

"Maximum sum subarray of size k: use a sliding window — add incoming element, remove outgoing, track the max."

Practice this term

Master Sliding Window in context by working through exercises in the Data Structures & Algorithms module. You'll see the term used in real engineering scenarios with multiple-choice, fill-in-the-blank, and matching drills.