Moving Average from Data Stream
For each incoming value print the average of the last w values (fewer if the window is not full), rounded to two decimals.
Constraints
1 <= w <= 1000
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.