0480. Sliding Window Median
Description
**Input:** nums = [1,3,-1,-3,5,3,6,7], k = 3
**Output:** [1.00000,-1.00000,-1.00000,3.00000,5.00000,6.00000]
**Explanation:**
Window position Median
--------------- -----
[**1 3 -1**] -3 5 3 6 7 1
1 [**3 -1 -3**] 5 3 6 7 -1
1 3 [**-1 -3 5**] 3 6 7 -1
1 3 -1 [**-3 5 3**] 6 7 3
1 3 -1 -3 [**5 3 6**] 7 5
1 3 -1 -3 5 [**3 6 7**] 6ac
Last updated