Technical
Create a Python class that maintains a rolling average of the last N numbers added to it. The class should have methods to add a new number and retrieve the current rolling average.
Business Intelligence Engineer
Amazon
Try Free AI Interview
Interview question asked to Business Intelligence Engineers interviewing at Amazon: Create a Python class that maintains a rolling average of the last N numbers added to it. The class should have methods to add a new number and retrieve the current rolling average..