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 listJan 2, 2026 08:08Rajarshi BasuRajarshi BasuScore: 6,813Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2026 08:086,53581,739,41450,552,0003,033,0002,469,888
2Jan 2, 2026 08:086,81386,011,61051,873,0003,990,0002,326,528
3Jan 2, 2026 08:086,86584,546,54953,276,0003,015,0002,269,184