InterviewDB Question

Smoothing Filter: Implement a 1D Moving-Average Smoothing Filter on a Signal

Question Details

Problem Implement a causal moving-average filter that smooths a noisy 1D signal. Given an input array and a window size W, replace each sample with the mean of the W most recent samples (including the current one). Handle the boundary at the start of the signal. Example: Follow-ups What is the time complexity of the naive vs. running-sum approach? How does a Gaussian filter differ from a box (moving-average) filter in the frequency domain? How would you implement an exponential moving average (E…

Full Details

🔒

Unlock all Verkada questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a reported interview question from a verkada interview during the phone round.

It covers the following topics: Arrays, Coding, Phone .