CS fundamentals and algorithmsMeta
Streaming moving average
Frame times arrive as a stream, one per frame. Design a type that returns "the average of the last k frames" instantly whenever asked. It's called 60 times a second, so the math has to stay light. Explain the data structure, how you update it, and the complexity.