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 21, 2026 13:04olliecrowolliecrowScore: 18,290Success
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 23:413,41955,077,46125,029,0003,003,0002,265,088
2Mar 19, 2026 23:423,46857,762,98727,420,0001,015,0002,506,752
3Mar 19, 2026 23:423,48851,411,58026,562,0002,043,0002,449,408
4Mar 19, 2026 23:493,48953,580,97627,587,0001,021,0002,326,528
5Mar 19, 2026 23:413,53558,185,66526,987,0001,999,0002,306,048
6Mar 19, 2026 23:3918,247175,217,249146,634,0002,992,0002,273,280
7Mar 21, 2026 13:0418,285180,944,652145,942,0003,998,0002,453,504
8Mar 19, 2026 23:4918,290175,969,515146,981,0002,999,0002,424,832
9Mar 19, 2026 23:4218,314176,215,654147,171,0003,003,0002,301,952
10Mar 19, 2026 23:3918,341176,732,951147,389,0003,007,0002,412,544
11Mar 19, 2026 23:4118,355179,119,573149,505,0001,003,0002,510,848
12Mar 19, 2026 23:4918,369181,102,731146,638,0003,990,0002,506,752
13Mar 21, 2026 13:0418,370182,383,126147,641,0002,992,0002,424,832
14Mar 19, 2026 23:3918,390178,598,855146,802,0003,994,0002,510,848
15Mar 21, 2026 13:0418,427179,576,601147,097,0004,002,0002,412,544