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 20, 2021 12:26Andrey TsvetkovAndrey TsvetkovScore: 161,961Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 20, 2021 12:26132,2502,749,696,3861,084,453,39703,039,232
2Jun 20, 2021 12:26161,9614,224,657,3771,328,078,32102,314,240
3Jun 20, 2021 12:26191,5035,599,904,9961,570,324,13402,277,376