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 listApr 25, 2026 02:44olliecrowolliecrowError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 02:44017,901,47001,983,0002,539,520expected "2343718076 ", got "0 "
2Apr 25, 2026 02:44016,906,70202,089,0002,347,008expected "2166525723 ", got "0 "
3Apr 25, 2026 02:44020,141,01101,974,0002,535,424expected "2180787308 ", got "0 "