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 11, 2021 19:33Yuriy LyfenkoYuriy LyfenkoScore: 114,210Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2021 19:3271,806651,806,568588,806,02002,301,952
2Jun 11, 2021 19:3291,902819,945,945753,597,34102,306,048
3Jun 11, 2021 19:3394,062834,168,026771,311,09302,306,048
4Jun 11, 2021 19:3398,997867,684,104811,772,44202,297,856
5Jun 11, 2021 19:33105,993923,869,462869,144,37602,301,952
6Jun 11, 2021 19:33111,645981,701,126915,490,90202,314,240
7Jun 11, 2021 19:33111,984982,371,985918,267,54302,306,048
8Jun 11, 2021 19:33114,2101,002,609,175936,524,20902,306,048
9Jun 11, 2021 19:33122,0071,056,378,5251,000,456,85302,293,760
10Jun 11, 2021 19:33124,7311,093,153,6581,022,793,32302,301,952
11Jun 11, 2021 19:33128,2801,105,499,2391,051,892,48402,297,856
12Jun 11, 2021 19:33128,7921,117,726,9601,056,093,32702,306,048
13Jun 11, 2021 19:33134,7161,161,741,0271,104,672,98502,297,856
14Jun 11, 2021 19:32137,1851,184,213,4401,124,915,35502,301,952
15Jun 11, 2021 19:33157,2881,354,848,2881,289,759,54802,293,760