Skip to content

Commit 279ed91

Browse files
refactor 346
1 parent 0521f27 commit 279ed91

File tree

1 file changed

+0
-12
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-12
lines changed

src/main/java/com/fishercoder/solutions/_346.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,6 @@
33
import java.util.LinkedList;
44
import java.util.Queue;
55

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-
*/
186
public class _346 {
197

208
public static class Solution1 {

0 commit comments

Comments
 (0)