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.
Example:
解题要点:
让一个queue永远保持不要超过size。
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.
Example:
让一个queue永远保持不要超过size。
Last updated
Was this helpful?