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 listNov 20, 2024 16:29Joad NacerJoad NacerScore: 8,098Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 20, 2024 16:297,98784,284,96058,438,0007,052,0002,408,448
2Nov 20, 2024 16:298,09890,336,40559,358,0007,042,0002,301,952
3Nov 20, 2024 16:298,81698,296,99764,258,0008,032,0002,506,752