LeetCode
Sliding Window Median
Click
here
for an explanation.