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 15, 2026 10:54Dominique GarmierDominique GarmierScore: 13,626Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 19, 2026 14:4013,562136,878,593107,198,0004,007,0002,306,048
2Mar 20, 2026 09:3613,593132,442,642111,465,00002,277,376
3Mar 15, 2026 14:0813,593137,683,714110,457,0001,004,0002,289,664
4Mar 15, 2026 11:3113,601140,799,077109,537,0001,991,0002,379,776
5Mar 20, 2026 02:3113,601140,604,079110,523,0001,004,0002,367,488
6Mar 20, 2026 02:3113,604141,288,890111,552,00002,379,776
7Mar 15, 2026 11:3113,610140,115,855110,601,0001,005,0002,285,568
8Mar 15, 2026 10:5413,622142,009,326110,705,000997,0002,359,296
9Mar 15, 2026 14:0813,626137,751,938110,738,000997,0002,269,184
10Mar 20, 2026 02:3113,626138,010,831109,736,0001,995,0002,265,088
11Mar 19, 2026 14:4013,630138,151,720109,773,0001,995,0002,342,912
12Mar 20, 2026 09:3613,632136,603,986109,784,0001,996,0002,351,104
13Mar 15, 2026 14:0813,632136,829,683109,784,0001,996,0002,367,488
14Mar 19, 2026 14:4013,632144,242,966110,788,000998,0002,260,992
15Mar 20, 2026 09:3613,636141,954,972109,822,0001,996,0002,285,568
16Mar 15, 2026 11:3113,655144,521,327109,972,0001,999,0002,269,184
17Mar 15, 2026 10:5413,667139,811,169110,072,0002,001,0002,506,752
18Mar 15, 2026 10:5413,668137,780,032110,079,0002,001,0002,322,432