Sliding Window Maximum

An analysis of algorithms and complexities

Shuo Wang
Geek Culture
Published in
5 min readJun 1, 2021

--

(Image by Author)

In this story, we are going to talk about an interesting problem about finding maximum integers in a list. This problem is deceptive in that the simple solution is really simple, but there are a couple of not so obvious tricks you can apply to it that makes a big improvement on the performance.

Problem Statement

--

--

Shuo Wang
Geek Culture

Interesting pieces on various topics in finance and technology.