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…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Phone