Coding tools
Learn & compete
Community
Practice
Deque for O(n) window max.
Constraints
Example
>>> sliding_max([1,3,-1,-3,5,3,6,7], 3) [3,3,5,5,6,7]
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints