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 listNov 27, 2026 10:16janwwwjanwwwScore: 2,512Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 27, 2026 10:172,49628,064,76620,474,000020,480
2Nov 27, 2026 10:172,50028,061,74820,506,000020,480
3Nov 27, 2026 10:172,50828,019,15420,573,000020,480
4Nov 27, 2026 10:172,51228,117,49620,599,000020,480
5Nov 27, 2026 10:172,51228,186,18120,606,000020,480
6Nov 27, 2026 10:172,51328,035,46020,613,000020,480
7Nov 27, 2026 10:172,52228,559,32020,685,000020,480
8Nov 27, 2026 10:172,53028,294,31820,746,000020,480
9Nov 27, 2026 10:172,54228,459,14520,850,000020,480