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 listJul 12, 2023 15:24Paul MasurelPaul MasurelScore: 16,050Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 12, 2023 15:2415,946197,282,028130,760,53502,314,240
2Jul 12, 2023 15:2416,050204,051,528131,607,55402,277,376
3Jul 12, 2023 15:2416,332192,371,664133,920,33002,232,320