Exercises/#97 Sliding Window Maximum
#97

Sliding Window Maximum

HardπŸ“š Stack & Queue
130 XP

Problem

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

Examples

Input: nums=[1,3,-1,-3,5,3,6,7], k=3
Output: [3,3,5,5,6,7]
stackqueuedequesliding-window
AI Assistantβ€” powered by AI

Unlock hints progressively β€” start gentle, go deeper only if needed.

πŸ’‘

Level 1: Gentle Nudge

A subtle direction

πŸ—ΊοΈ

Level 2: Approach

The algorithm to use

πŸ”

Level 3: Detailed

Step-by-step guidance

97 / 150

Your Solution

⚑ JavaScript
Loading...

to save progress and use AI features