Maintain a Moving Average with a Circular Buffer

Read the full interview experience this question came from →

Quick Overview

Maintain one moving average per incoming value using the values seen so far until the window fills, then exactly the latest `k` values in a circular-buffer design.

Maintain a Moving Average with a Circular Buffer

Company: Coinbase

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Onsite

Overview: Maintain one moving average per incoming value using the values seen so far until the window fills, then exactly the latest `k` values in a circular-buffer design.

Read the full Coinbase Software Engineer interview experience this question came from

|Home/Coding & Algorithms/Coinbase
Coinbase logo
Coinbase
May 12, 2026
mediumSoftware EngineerOnsiteCoding & Algorithms
7
0
Loading...

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...