Median Sergey Svistunov

Find the median of a stream of binary integers as fast as possible.

Input: 100 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The median value, printed as a decimal string. The median is defined as the element at index N/2 (i.e., a[50000000]) in the sorted array.

Back to listJun 20, 2021 13:00Andrey TsvetkovAndrey TsvetkovScore: 102,400Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 20, 2021 12:5981,931752,518,856671,831,85102,191,360
2Jun 20, 2021 13:0183,203737,846,169682,263,20802,187,264
3Jun 20, 2021 13:0185,831769,803,560703,813,09102,199,552
4Jun 20, 2021 12:5990,122792,331,138738,998,61602,199,552
5Jun 20, 2021 13:0090,315812,504,684740,584,69002,199,552
6Jun 20, 2021 13:0193,833823,771,915769,434,18202,203,648
7Jun 20, 2021 13:0197,335879,750,835798,144,04202,199,552
8Jun 20, 2021 13:00102,400910,273,448839,678,31802,207,744
9Jun 20, 2021 13:01105,009919,884,532861,075,22202,183,168
10Jun 20, 2021 13:00106,675956,286,064874,732,61302,297,856
11Jun 20, 2021 12:59110,325965,357,463904,664,82902,199,552
12Jun 20, 2021 13:00110,838984,885,739908,867,57202,310,144
13Jun 20, 2021 13:01115,8571,009,922,740950,031,03802,240,512
14Jun 20, 2021 13:00118,1441,025,214,179968,781,55502,183,168
15Jun 20, 2021 13:00123,2361,068,086,8881,010,535,13102,306,048