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 12:15Andrew TsibinAndrew TsibinScore: 3,024Success
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 12:163,01133,857,67123,669,0001,026,00020,480
2Nov 27, 2026 12:163,01135,096,48823,637,0001,057,00020,480
3Nov 27, 2026 12:163,01933,869,23623,711,0001,047,00020,480
4Nov 27, 2026 12:163,02033,967,15323,695,0001,070,00020,480
5Nov 27, 2026 12:163,02433,939,06223,733,0001,070,00020,480
6Nov 27, 2026 12:163,02933,991,79723,813,0001,027,00020,480
7Nov 27, 2026 12:163,02934,618,35923,811,0001,028,00020,480
8Nov 27, 2026 12:163,03434,093,50223,831,0001,055,00020,480
9Nov 27, 2026 12:163,04234,132,77223,892,0001,055,00020,480