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 listApr 9, 2025 21:00Chandrasekaran AkashChandrasekaran AkashScore: 975,460Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 9, 2025 20:25965,3257,946,694,8827,720,822,000194,844,0002,277,376
2Apr 9, 2025 20:25967,7397,963,955,9287,744,616,000190,842,0002,281,472
3Apr 9, 2025 20:25968,9757,980,294,6247,753,750,000191,845,0002,281,472
4Apr 9, 2025 20:25969,4497,989,968,8327,753,639,000195,839,0002,281,472
5Apr 9, 2025 20:25969,9817,987,354,7987,771,984,000181,859,0002,412,544
6Apr 9, 2025 20:25973,3428,017,862,2357,776,546,000204,856,0002,281,472
7Apr 9, 2025 21:00975,4608,029,296,8077,802,924,000195,847,0002,482,176
8Apr 9, 2025 20:25975,4958,031,976,6337,806,227,000192,832,0002,342,912
9Apr 9, 2025 20:25975,7568,039,536,9427,807,362,000193,835,0002,281,472
10Apr 9, 2025 21:00976,8358,041,781,1937,815,194,000194,855,0002,281,472
11Apr 9, 2025 21:00978,1438,050,577,8937,830,921,000189,852,0002,281,472
12Apr 9, 2025 20:25978,7388,057,690,4377,829,809,000195,845,0002,306,048