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 30, 2024 19:01Joad NacerJoad NacerScore: 8,743Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 30, 2024 19:016,390117,463,90852,399,06602,240,512
2May 30, 2024 19:018,743137,465,53971,689,04402,232,320
3May 30, 2024 19:019,553141,785,73878,331,85302,232,320