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 24, 2023 22:59Andranik ChakiryanAndranik ChakiryanScore: 1,021,066Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 24, 2023 22:591,014,66210,988,150,0048,320,227,09302,273,280
2Feb 24, 2023 22:591,021,06610,687,105,7018,372,741,22202,514,944
3Feb 24, 2023 22:591,024,31810,953,398,0448,399,404,84702,879,488