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 19, 2023 22:51LiamLiamScore: 332,331Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 19, 2023 22:51330,6022,795,522,0472,710,935,52302,301,952
2Feb 19, 2023 22:51332,3312,806,738,8252,725,113,81502,297,856
3Feb 19, 2023 22:51335,7112,810,671,1112,752,826,65602,310,144