346 Moving Average from Data Stream
Given a stream of integers and a window size, calculate the moving average of all integers in the sliding window.
For example,
就是滑动着的sum,窗口满了的时候,后面加一个前面减一个。
Last updated
Was this helpful?
Given a stream of integers and a window size, calculate the moving average of all integers in the sliding window.
For example,
就是滑动着的sum,窗口满了的时候,后面加一个前面减一个。
Last updated
Was this helpful?