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 listJun 16, 2026 15:30Maya RebholzMaya RebholzError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 16, 2026 15:310604,498,188556,165,00039,197,0002,125,824expected "2037081130 ", got "buffer_index: 7, val_index: 6249089 0 "
2Jun 16, 2026 15:310606,992,312558,965,00038,656,0002,125,824expected "2132167172 ", got "buffer_index: 7, val_index: 6247981 2147414500 "
3Jun 16, 2026 15:310607,813,726561,071,00037,148,0002,125,824expected "2136262599 ", got "buffer_index: 8, val_index: 6372 -2147216219 "