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 11, 2025 10:15Valentin KofmanValentin KofmanScore: 6,984Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 11, 2025 10:156,43878,877,77736,853,00015,936,0002,338,816
2Jul 11, 2025 08:416,73982,838,01435,164,00020,094,0002,383,872
3Jul 11, 2025 19:166,75179,210,72339,253,00016,104,0002,277,376
4Jul 11, 2025 10:146,77586,099,38739,391,00016,160,0002,396,160
5Jul 11, 2025 08:416,81383,924,71541,902,00013,967,0002,404,352
6Jul 11, 2025 16:256,83584,845,62837,033,00019,017,0002,510,848
7Jul 11, 2025 19:166,96479,419,15141,073,00016,028,0002,473,984
8Jul 11, 2025 08:416,98483,792,46841,193,00016,075,0002,523,136
9Jul 11, 2025 16:257,04480,530,56139,837,00017,926,0002,383,872
10Jul 11, 2025 10:147,06387,236,08341,939,00015,976,0002,445,312
11Jul 11, 2025 19:167,07581,137,35834,011,00024,008,0002,461,696
12Jul 11, 2025 16:257,11788,975,72543,269,00015,093,0002,289,664
13Jul 11, 2025 10:147,14383,793,60642,414,00016,158,0002,355,200
14Jul 11, 2025 10:157,14991,410,30838,407,00020,214,0002,314,240
15Jul 11, 2025 10:157,16583,525,84142,820,00015,933,0002,445,312