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 listMay 5, 2025 16:51Aniruddha DebAniruddha DebScore: 1,061,544Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2025 16:511,058,9728,712,785,0408,480,742,000202,826,0002,269,184
2May 5, 2025 16:511,061,5448,733,395,6108,486,843,000217,816,0002,269,184
3May 5, 2025 16:511,067,5498,786,130,8188,551,092,000202,812,0002,310,144