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 listMar 29, 2024 19:11Drew GarciaDrew GarciaScore: 111,107Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 29, 2024 19:11100,626887,621,436825,130,84002,285,568
2Mar 29, 2024 19:11111,107975,976,137911,077,00402,281,472
3Mar 29, 2024 19:11112,284979,402,748920,729,74902,277,376