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 listJun 28, 2021 18:11alex3dalex3dScore: 196,211Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2021 18:11193,0181,650,778,4911,582,749,61202,277,376
2Jun 28, 2021 18:11196,2111,661,636,7041,608,932,93102,297,856
3Jun 28, 2021 18:11197,3421,670,987,4551,618,206,74102,289,664