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 listMay 5, 2025 16:45Aniruddha DebAniruddha DebScore: 974,909Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2025 16:45972,8358,008,535,2217,776,415,000200,829,0002,498,560
2May 5, 2025 16:45974,9098,022,049,3867,787,425,000206,825,0002,412,544
3May 5, 2025 16:45975,1998,033,505,9187,802,807,000193,821,0002,482,176