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 20, 2026 07:46A_ShamanA_ShamanError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 20, 2026 07:46010,932,82401,592,0002,121,728expected "2112975094 ", got "0 "
2Jun 20, 2026 07:46011,077,98201,576,0002,121,728expected "2056060725 ", got "0 "
3Jun 20, 2026 07:46010,929,84801,586,0002,121,728expected "2241805875 ", got "0 "