← DSA practice

Sliding Window Maximum

HardSliding Window

The problem

Given an array and window size k, return the maximum of each sliding window.

Full statement, examples and constraints: see the original problem link below.

Solve it on LeetCode