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 listJul 15, 2023 15:02Paul MasurelPaul MasurelScore: 58,130Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 15, 2023 15:034,091117,789,73733,550,23702,232,320
2Jul 15, 2023 15:034,114106,609,53233,731,62102,297,856
3Jul 15, 2023 15:044,11599,236,51433,743,50602,199,552
4Jul 15, 2023 15:0457,613533,919,342472,426,50402,224,128
5Jul 15, 2023 15:0457,775540,567,842473,754,82402,252,800
6Jul 15, 2023 15:0457,822528,681,613474,143,86902,281,472
7Jul 15, 2023 15:0257,910546,415,952474,859,71802,220,032
8Jul 15, 2023 15:0457,939545,692,253475,101,56602,220,032
9Jul 15, 2023 15:0358,078544,668,682476,237,74602,285,568
10Jul 15, 2023 15:0458,127536,814,124476,642,77102,236,416
11Jul 15, 2023 15:0358,130555,459,876476,663,17902,285,568
12Jul 15, 2023 15:0358,372567,831,142478,653,07402,203,648
13Jul 15, 2023 15:0358,440549,103,450479,208,48602,228,224
14Jul 15, 2023 15:0358,456557,308,749479,336,11502,252,800
15Jul 15, 2023 15:0458,467537,368,707479,431,54902,191,360
16Jul 15, 2023 15:0358,468547,787,331479,435,42002,289,664
17Jul 15, 2023 15:0258,469563,833,784479,446,61502,269,184
18Jul 15, 2023 15:0358,503542,831,886479,721,90702,228,224
19Jul 15, 2023 15:0458,510539,707,768479,779,96502,306,048
20Jul 15, 2023 15:0458,560550,289,649480,188,81102,318,336
21Jul 15, 2023 15:0258,562550,073,792480,209,26702,277,376