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 listMar 20, 2026 04:45olliecrowolliecrowScore: 21,219Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 20, 2026 04:493,25451,347,60825,660,0001,026,0002,531,328
2Mar 20, 2026 04:493,27451,676,45124,856,0001,988,0002,469,888
3Mar 20, 2026 04:493,27455,123,08924,862,0001,988,0002,342,912
4Mar 20, 2026 04:493,27751,663,01123,886,0002,985,0002,297,856
5Mar 20, 2026 14:003,28949,467,43022,972,0003,995,0002,330,624
6Mar 20, 2026 04:453,29255,195,64124,998,0001,999,0002,486,272
7Mar 20, 2026 14:003,73654,749,41729,614,0001,021,0002,383,872
8Mar 20, 2026 04:4921,219199,897,034170,993,0002,999,0002,277,376
9Mar 20, 2026 04:4921,241195,417,046169,174,0005,005,0002,281,472
10Mar 20, 2026 04:4921,296199,367,055171,636,0002,993,0002,506,752
11Mar 20, 2026 04:4521,325196,859,035171,870,0002,997,0002,330,624
12Mar 20, 2026 04:4921,328196,716,561171,891,0002,998,0002,494,464
13Mar 20, 2026 14:0021,335200,771,808172,946,0001,999,0002,392,064
14Mar 20, 2026 04:4921,351207,086,107171,080,0004,001,0002,469,888
15Mar 20, 2026 04:4521,587199,198,912172,016,0005,000,0002,502,656