问一道题(9)# JobHunting - 待字闺中
f*d
1 楼
走过路过的大牛请指教:
Given a sequence of data (it may have duplicates), a fixed-sized moving
window, move the window at each iteration from the start of the data
sequence, such that the oldest data element is removed from the window and a
new data element is pushed into the window,how to find the median of the
data inside the window at each moving?
Given a sequence of data (it may have duplicates), a fixed-sized moving
window, move the window at each iteration from the start of the data
sequence, such that the oldest data element is removed from the window and a
new data element is pushed into the window,how to find the median of the
data inside the window at each moving?