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 listFeb 7, 2026 04:13Josu San MartinJosu San MartinScore: 11,185Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 04:113,36452,221,58025,545,0002,043,0002,490,368
2Feb 7, 2026 04:113,37653,386,21425,632,0002,050,0002,494,464
3Feb 7, 2026 04:113,39352,448,00624,845,0002,981,0002,322,432
4Feb 7, 2026 04:113,39655,085,04324,861,0002,983,0002,482,176
5Feb 7, 2026 04:113,39842,605,43024,876,0002,985,0002,490,368
6Feb 7, 2026 04:123,40557,558,31725,927,0001,994,0002,457,600
7Feb 7, 2026 04:1211,185122,383,99389,725,0001,993,0002,367,488
8Feb 7, 2026 04:1311,185125,803,75189,723,0001,993,0002,334,720
9Feb 7, 2026 04:1311,211120,596,81789,936,0001,998,0002,322,432
10Feb 7, 2026 04:1111,219119,896,93389,999,0001,999,0002,510,848
11Feb 7, 2026 04:1111,220122,179,09689,002,0003,000,0002,433,024
12Feb 7, 2026 04:1211,223115,040,68990,031,0002,000,0002,502,656
13Feb 7, 2026 04:1111,233122,387,40892,113,00002,404,352
14Feb 7, 2026 04:1311,237115,994,15191,146,0001,001,0002,338,816
15Feb 7, 2026 04:1111,413126,085,09593,586,00002,412,544