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 12, 2021 21:18Yuriy LyfenkoYuriy LyfenkoScore: 117,167Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 12, 2021 21:1989,459803,902,643733,566,41202,187,264
2Jun 12, 2021 21:1994,580830,680,860775,559,33502,187,264
3Jun 12, 2021 21:18104,635911,448,820858,003,32002,187,264
4Jun 12, 2021 21:19107,291947,817,905879,787,79702,187,264
5Jun 12, 2021 21:19108,724955,157,035891,535,74502,179,072
6Jun 12, 2021 21:19112,984984,031,441926,468,24902,191,360
7Jun 12, 2021 21:19116,1831,013,680,212952,698,44702,187,264
8Jun 12, 2021 21:19117,1671,019,169,421960,771,98002,195,456
9Jun 12, 2021 21:19118,3061,025,360,729970,111,02502,179,072
10Jun 12, 2021 21:19118,5521,029,247,466972,122,54902,183,168
11Jun 12, 2021 21:18121,7631,064,135,448998,453,33202,187,264
12Jun 12, 2021 21:19126,5361,095,648,1781,037,592,13702,187,264
13Jun 12, 2021 21:19128,6781,117,297,5621,055,163,25802,187,264
14Jun 12, 2021 21:18129,1541,123,496,3701,059,063,16802,174,976
15Jun 12, 2021 21:19141,1841,237,399,9971,157,708,36202,183,168