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 listDec 12, 2024 18:14zielajzielajScore: 5,419Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 12, 2024 18:122,84452,279,48122,310,0001,014,0002,461,696
2Oct 20, 2024 22:092,85544,365,88722,391,0001,017,0002,449,408
3Dec 12, 2024 18:122,86544,012,21023,490,00002,355,200
4Dec 12, 2024 18:122,87144,007,22723,542,00002,314,240
5Oct 20, 2024 22:092,87242,194,21820,478,0003,071,0002,310,144
6Oct 20, 2024 22:092,87553,267,79822,552,0001,025,0002,301,952
7Oct 20, 2024 22:092,87855,972,41222,571,0001,025,0002,318,336
8Oct 20, 2024 22:092,88250,579,51022,608,0001,027,0002,527,232
9Oct 20, 2024 22:092,88854,338,35723,681,00002,281,472
10Oct 20, 2024 22:095,41566,814,25742,385,0002,018,0002,514,944
11Dec 12, 2024 18:145,41966,186,30743,429,0001,009,0002,478,080
12Dec 12, 2024 18:125,42168,031,71942,435,0002,020,0002,506,752
13Dec 12, 2024 18:125,42466,963,19743,466,0001,010,0002,506,752
14Dec 12, 2024 18:145,42567,833,39143,474,0001,011,0002,351,104
15Dec 12, 2024 18:125,42769,910,62044,502,00002,465,792
16Dec 12, 2024 18:125,42972,619,83344,518,00002,498,560
17Oct 20, 2024 22:095,43575,196,53543,551,0001,012,0002,478,080
18Dec 12, 2024 18:125,44170,861,66042,587,0002,027,0002,347,008
19Dec 12, 2024 18:125,44780,027,31144,667,00002,330,624
20Oct 20, 2024 22:095,46573,168,74043,819,000995,0002,306,048
21Dec 12, 2024 18:145,46574,931,91543,814,000995,0002,437,120