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 18:12Andrew TsibinAndrew TsibinScore: 30,853Success
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 18:132,93133,158,57122,989,0001,053,0002,113,536
2Nov 26, 2026 18:132,96533,488,74823,243,0001,074,0002,113,536
3Nov 26, 2026 18:132,98033,650,42123,399,0001,044,0002,113,536
4Nov 26, 2026 18:1330,801261,675,453251,569,0001,004,0002,117,632
5Nov 26, 2026 18:1330,853262,147,520250,995,0002,005,0002,117,632
6Nov 26, 2026 18:1330,899262,488,705252,372,0001,005,0002,117,632
7Nov 26, 2026 18:1331,419268,079,865256,637,0001,003,0002,117,632
8Nov 26, 2026 18:1331,441267,023,770256,812,0001,005,0002,117,632
9Nov 26, 2026 18:1331,631268,477,088258,372,0001,005,0002,117,632