Meta interview question

Moving Average

Interview Answer

Anonymous

Jul 30, 2018

Well, add elements to a queue until the window is full, if it is, enqueue and dequeue it calculating the new average!