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 listMar 28, 2024 16:36emily graceemily graceScore: 120,716Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 28, 2024 16:36114,9171,011,133,685942,317,21602,297,856
2Mar 28, 2024 16:36120,7161,054,716,617989,872,34702,265,088
3Mar 28, 2024 16:36278,4462,344,923,3352,283,258,89602,297,856