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 listFeb 12, 2023 22:47LiamLiamScore: 963,104Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 12, 2023 22:47958,7877,915,858,2597,862,054,85302,293,760
2Feb 12, 2023 22:47963,1047,958,121,3407,897,449,61702,293,760
3Feb 12, 2023 22:47964,7807,968,921,0887,911,199,02602,293,760