Practice Problem

Sliding Window Maximum

Difficulty: Hard

Find the maximum value in each sliding window of size k as it moves across the array.