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 9, 2025 08:13Ian MckibbenIan MckibbenScore: 108,041Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 9, 2025 08:1382,434706,048,865505,971,000169,990,0002,433,024
2Jan 9, 2025 08:13108,041912,766,677716,142,000169,796,0002,310,144
3Jan 9, 2025 08:13112,085943,966,055748,266,000170,832,0002,289,664