Skip to content
DeetCode.
Practice Study Circuits Interview Vault Discuss AI Mode
0day streak 0XP 0DeetCoins
Sign in Sign up
Username
Profile Submissions Leaderboard Send feedback
Menu
Sign in Sign up
U
0days 0XP 0DeetCoins
Profile Submissions
Practice Study Circuits Playground Interview Vault Discuss AI Mode More Leaderboard Problem index Updates
Home/Problems/Compute Moving Average

Compute Moving Average

Easy Python DSP
Solve this problem

Compute simple moving average of a list using Python list operations.

Constraints

  • window size N.
  • return list of floats.
  • same length as input.
Starter codePython
1def sma(x,N):2    pass
Solve this problem

Or browse every problem, or try the circuit simulator.

DeetCode.

Practice for embedded, firmware and RTL engineers.

Product

  • Practice
  • Study
  • Circuits Playground
  • Interview Vault

Learn

  • Modules
  • Discuss
  • Leaderboard

Company

  • About
  • Contact
  • Terms
  • Privacy
© 2026 DeetCode · Designed & Developed by GSSV · Built in India