建议使用官方纸质指南,查看对照完整题目
【OG20-P286-377题】A certain list, L, contains a total of n numbers, not necessarily distinct, that are arranged in increasing order. If L1 is the list consisting of the first n1 numbers in L and L2 is the list consisting of the last n2 numbers in L , is 17 a mode for L ?
1. 17 is a mode for L1 and 17 is a mode for L2 .
2.n1 +n2 =n
-
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

1.mode 是 众数的意思
2.升序排列
因此当前后n1 n2 众数都是17 时, 17 就是 L的众数
题目讨论 (4条评论)

-
wydsg
这里的第二个条件是不是已经包含在题目里了?
0
0 回复 2021-07-22 14:09:43
-
GraceSG回复wydsg
可以想总共3个,那么若n1是1,n2可以是1、2、3, 两个相加不一定是总数n
0
0 回复 2021-09-09 10:29:23
-
-
374729so
n1 n2都包含17,又因为升序,所以17一定是n1最大数,n2最小数,n1,n2之间的数集一定只能含有17,所以mode是17
5
0 回复 2019-10-22 20:45:26
-
但行好事 莫问前程回复374729so
mode是众数啊 哥
1
0 回复 2021-09-09 16:50:08
-
-
Qiuyu
in increasing order
0
0 回复 2019-08-01 16:42:19
-
一站拜拜
升序排列
0
0 回复 2019-06-15 23:09:02