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 26, 2026 12:17Andrew TsibinAndrew TsibinScore: 3,032Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 26, 2026 12:173,02033,846,91323,742,0001,024,0002,113,536
2Nov 26, 2026 12:173,02633,884,15123,792,0001,027,0002,113,536
3Nov 26, 2026 12:173,02733,982,06023,803,0001,026,0002,113,536
4Nov 26, 2026 12:173,03034,029,04423,788,0001,063,0002,113,536
5Nov 26, 2026 12:173,03233,959,56123,817,0001,053,0002,113,536
6Nov 26, 2026 12:173,05034,155,07723,983,0001,027,0002,113,536
7Nov 26, 2026 12:173,05134,162,20023,970,0001,052,0002,113,536
8Nov 26, 2026 12:173,05134,117,99923,967,0001,054,0002,113,536
9Nov 26, 2026 12:1730,226257,028,006246,850,0001,004,0002,117,632