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 listJun 19, 2025 22:28Adam FolwarcznyAdam FolwarcznyScore: 332,372Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 19, 2025 22:28331,6142,749,235,6452,535,353,000183,880,0002,260,992
2Jun 19, 2025 22:28332,3722,758,383,0912,554,611,000170,840,0002,478,080
3Jun 19, 2025 22:28333,7962,761,322,6362,564,245,000172,881,0002,441,216