An Introduction to Sliding Window Algorithms

Slide into linear time with two pointers, a loop, and a little patience.

Jordan Moore
Level Up Coding
Published in
10 min readNov 4, 2019

--

Before sliding into linear time with the Sliding Window algorithm, one should understand the metrics by which an algorithm is deemed efficient.

To illustrate this, the following quote by Antoine de Saint-Exupéry, the author of The Little

--

--