Maintain a Windowed Moving Average across Stream Calls
Company: Spotify
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: easy
Interview Round: Other
Overview: Maintain a Windowed Moving Average across Stream Calls. Implement MovingAverage(int size) and double next(int val). Each next call appends val and returns the mean of the most recent size values, or of all seen value