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 listAug 21, 2024 13:35GabriellaGabriellaScore: 986,322Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 21, 2024 13:35982,0358,116,854,0028,052,683,04002,285,568
2Aug 21, 2024 13:35986,3228,146,933,8318,087,839,81802,285,568
3Aug 21, 2024 13:35990,7248,181,524,4008,123,939,66602,285,568