mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-11 18:31:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<pre>
|
||||
<strong>输入:</strong>count = [0,1,3,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
|
||||
<strong>输出:</strong>[1.00000,3.00000,2.37500,2.50000,3.00000]
|
||||
<strong>解释:</strong>用count表示的样本为[1,2,2,2,3,3,3,3,3]。
|
||||
<strong>解释:</strong>用count表示的样本为[1,2,2,2,3,3,3,3]。
|
||||
最小值和最大值分别为1和3。
|
||||
均值是(1+2+2+2+3+3+3+3) / 8 = 19 / 8 = 2.375。
|
||||
因为样本的大小是偶数,所以中位数是中间两个元素2和3的平均值,也就是2.5。
|
||||
|
Reference in New Issue
Block a user