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 listAug 31, 2024 21:48Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 25, 2024 04:2100000Error: No answer to stdout. Died or killed?stderr
2Aug 31, 2024 21:4700000Error: No answer to stdout. Died or killed?stderr
3Aug 31, 2024 21:4700000Error: No answer to stdout. Died or killed?stderr
4Dec 25, 2024 04:213,890559,766,68330,904,000996,0002,416,640
5Dec 25, 2024 04:213,903565,443,18230,007,0002,000,0002,461,696
6Dec 25, 2024 04:213,903558,520,27531,006,0001,000,0002,428,928
7Dec 25, 2024 04:213,908556,644,13929,043,0003,004,0002,482,176
8Dec 25, 2024 04:213,909561,507,52930,052,0002,003,0002,437,120
9Dec 25, 2024 04:213,913557,877,91329,080,0003,008,0002,490,368
10Dec 25, 2024 04:213,917558,660,47830,113,0002,007,0002,453,504
11Dec 25, 2024 04:213,921558,902,19829,142,0003,014,0002,269,184
12Dec 25, 2024 04:213,994559,159,31430,768,0001,985,0002,392,064
13Aug 31, 2024 21:493,994563,815,25729,772,0002,977,0002,355,200
14Aug 31, 2024 21:494,001562,742,91530,817,0001,988,0002,490,368
15Aug 31, 2024 21:494,014559,008,79829,923,0002,992,0002,318,336
16Aug 31, 2024 21:484,482565,758,73834,766,0001,986,0002,334,720
17Aug 31, 2024 21:484,483561,301,85634,771,0001,986,0002,506,752
18Aug 31, 2024 21:484,527565,137,82032,106,0005,016,0002,433,024
19Aug 31, 2024 21:484,537567,347,66035,195,0002,011,0002,461,696
20Aug 31, 2024 21:484,548561,771,67233,265,0004,032,0002,498,560
21Aug 31, 2024 21:484,566560,328,85532,382,0005,059,0002,514,944
22Aug 31, 2024 21:484,571564,314,57135,454,0002,025,0002,293,760
23Aug 31, 2024 21:484,582563,909,30834,524,0003,046,0002,351,104
24Aug 31, 2024 21:484,586563,052,09733,540,0004,065,0002,375,680
25Aug 31, 2024 21:484,604563,628,22935,763,0001,986,0002,265,088
26Aug 31, 2024 21:484,610565,450,93833,712,0004,086,0002,289,664
27Aug 31, 2024 21:484,726565,087,23436,763,0001,987,0002,273,280