Design a class and member functions to compute n-interval moving average in C++.
Resposta da entrevista
Sigiloso
2 de ago. de 2019
Use vectors to store last n elements. Everytime a new element comes in, push_back new elements and remove the first element and compute moving average.