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 11, 2021 20:06Yuriy LyfenkoYuriy LyfenkoScore: 119,693Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2021 20:06110,164959,635,675903,343,00902,301,952
2Jun 11, 2021 20:06119,6931,042,802,833981,483,64602,306,048
3Jun 11, 2021 20:06129,1501,136,303,1001,059,030,42102,310,144