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 listJul 1, 2025 20:56Adam FolwarcznyAdam FolwarcznyScore: 61,580Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 1, 2025 20:5655,732482,022,629435,000,00022,000,0002,420,736
2Jul 1, 2025 20:5661,580527,609,195484,958,00019,998,0002,281,472
3Jul 1, 2025 20:5662,463536,602,674488,184,00024,009,0002,371,584