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 listApr 15, 2023 21:46Franek KortaFranek KortaScore: 114,072Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 15, 2023 21:46108,288951,940,994887,965,61702,183,168
2Apr 15, 2023 21:46114,072998,368,910935,393,85802,183,168
3Apr 15, 2023 21:46114,4961,002,505,115938,869,85702,187,264