NEW PROBLEM
SLIDING WINDOW
Sliding Window Maximum
Given an array nums and a window size k, return the maximum of every contiguous window as it slides left to right.
example
nums = [1,3,-1,-3,5,3,6,7], k = 3
→ [3,3,5,5,6,7]
HINTS — EACH COSTS 2 MIN
{{ h.text }}
{{ h.state }}
your median on this pattern31 min
elapsed12:04