LeetCode weekly contest 142
RankNameScoreFinish TimeQ1 (5)Q2 (5)Q3 (8)Q4 (8)851 / 4504YoungForest131:39:38null1:00:12 21:19:38 2null本次比赛的失误主要在于第二题sort中的cmp函数写错了,没有保证 严格有序。一直segment fault。即 a < b, 必有 b !< a.
1093. Statistics from a Large Sample
Intution:
熟悉C++和统计中的这5个统计值的意义即可。
时间复杂度: O(N),
空间复杂度: O(1).
1
2
3
4
5
6
7
8
9
10
1