# Problem Definition

## Description

Given a stream of integers and a window size, calculate the moving average of all integers in the sliding window.

**Example:**

```plaintext
MovingAverage m = new MovingAverage(3);
m.next(1) = 1
m.next(10) = (1 + 10) / 2
m.next(3) = (1 + 10 + 3) / 3
m.next(5) = (10 + 3 + 5) / 3
```

## Notes

1. [LeetCode discussion - Java easy to understand solution](leetcode.com/explore/interview/card/google/65/design-4/336/discuss/81505/Java-easy-to-understand-solution/168098)