mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-13 11:21:42 +08:00
批量更新数据
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<p>给定一个窗口大小和一个整数数据流,根据该滑动窗口的大小,计算滑动窗口里所有数字的平均值。</p>
|
||||
<p>给定一个整数数据流和一个窗口大小,根据该滑动窗口的大小,计算滑动窗口里所有数字的平均值。</p>
|
||||
|
||||
<p>实现 <code>MovingAverage</code> 类:</p>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>
|
||||
inputs = ["MovingAverage", "next", "next", "next", "next"]
|
||||
inputs = ["MovingAverage", "next", "next", "next", "next"]
|
||||
inputs = [[3], [1], [10], [3], [5]]
|
||||
<strong>输出:</strong>
|
||||
[null, 1.0, 5.5, 4.66667, 6.0]
|
||||
|
Reference in New Issue
Block a user