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 listJan 16, 2025 00:01Ian MckibbenIan MckibbenScore: 12,212Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 16, 2025 00:0112,199124,209,92399,031,0001,000,0002,449,408
2Jan 16, 2025 00:0112,212132,610,06098,136,0002,002,0002,412,544
3Jan 16, 2025 00:0112,288126,526,16798,765,0001,995,0002,412,544