I'm not sure I understand the question. I thought it was asking to output all of the medians for each window in an array. That doesn't seem to be the case and it seems too easy anyway. Can someone explain what the question is asking us to do?
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.