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 22:39Andrey TsvetkovAndrey TsvetkovScore: 106,653Success
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 13:4281,491737,361,174668,228,77202,310,144
2Jun 20, 2021 13:1883,481761,382,690684,547,74402,297,856
3Jun 20, 2021 13:4184,508758,433,619692,962,33602,293,760
4Jun 20, 2021 13:1887,761778,537,775719,637,90802,301,952
5Jun 20, 2021 13:4288,494789,527,809725,648,97302,293,760
6Jun 20, 2021 21:0499,008871,686,805811,862,68402,187,264
7Jun 20, 2021 21:0499,638874,542,743817,035,06302,310,144
8Jun 20, 2021 22:39106,653934,800,277874,554,14302,285,568
9Jun 20, 2021 13:42106,797935,196,672875,735,21302,195,456
10Jun 20, 2021 21:04107,196942,506,343879,006,23102,285,568
11Jun 20, 2021 13:41107,394931,854,355880,629,55602,207,744
12Jun 20, 2021 22:39108,899964,330,052892,968,69902,314,240
13Jun 20, 2021 13:18109,625967,705,427898,924,12102,187,264
14Jun 20, 2021 13:41113,030993,061,762926,845,10502,293,760
15Jun 20, 2021 22:39138,3461,184,341,4491,134,435,39602,220,032