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 listOct 3, 2026 01:36Karthik ReddyKarthik ReddyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 3, 2026 01:37086,190,18776,104,0001,007,00020,480expected "2187452890 ", got "M 1 10896 2325 991808 19 5 0 49989104 49989104 0 "
2Oct 3, 2026 01:372,48629,450,66120,387,000020,480
3Oct 3, 2026 01:372,49129,443,40820,427,000020,480