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:37GabriellaGabriellaScore: 960,436Success
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:37953,9267,873,122,5887,822,191,54502,289,664
2Aug 21, 2024 13:37960,4367,936,806,4937,875,575,80202,293,760
3Aug 21, 2024 13:37961,0937,941,665,5197,880,962,59002,285,568