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 listJul 6, 2025 08:01Aniruddha DebAniruddha DebScore: 11,725Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 6, 2025 08:0111,642120,591,06290,439,0005,024,0002,396,160
2Jul 6, 2025 08:0111,725122,267,88589,134,0007,010,0002,523,136
3Jul 6, 2025 08:0112,626129,252,22198,511,0005,026,0002,293,760