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 27, 2026 08:40janwwwjanwwwError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 27, 2026 08:40030,050,72821,387,0001,058,00024,576Exit with code 1: ME3 t0=391 map=179 s0=134/n0 s1=70/n2264 s2=2/n2264 s3=189/n8558 s4=6/n8558 s5=1002/n78728 s6=81/n8222 s7=2601/n191253 s8=137/n191253 s9=10036/n335080 s10=241/n335080 s11=6611/n440200 s12=1/n440200 s13=9/n440226 sel=462 out=39 end=22209stderr