We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0521f27 commit 279ed91Copy full SHA for 279ed91
src/main/java/com/fishercoder/solutions/_346.java
@@ -3,18 +3,6 @@
3
import java.util.LinkedList;
4
import java.util.Queue;
5
6
-/**
7
- * 346. Moving Average from Data Stream
8
- *
9
- * Given a stream of integers and a window size, calculate the moving average of all integers in the sliding window.
10
-
11
- For example,
12
- MovingAverage m = new MovingAverage(3);
13
- m.next(1) = 1
14
- m.next(10) = (1 + 10) / 2
15
- m.next(3) = (1 + 10 + 3) / 3
16
- m.next(5) = (10 + 3 + 5) / 3
17
- */
18
public class _346 {
19
20
public static class Solution1 {
0 commit comments