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 listJan 6, 2026 10:20Rajarshi BasuRajarshi BasuScore: 70,267Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 6, 2026 10:214,49363,916,30531,862,0004,978,0002,445,312
2Jan 6, 2026 10:204,56163,368,73935,380,0002,021,0002,510,848
3Jan 6, 2026 10:204,82966,093,33035,533,0004,061,0002,314,240
4Jan 6, 2026 10:214,93464,835,99538,434,0002,022,0002,478,080
5Jan 6, 2026 10:205,00970,509,37140,072,0001,001,0002,437,120
6Jan 6, 2026 10:215,03668,391,71235,254,0006,043,0002,445,312
7Jan 6, 2026 10:205,08164,932,62637,598,0004,064,0002,297,856
8Jan 6, 2026 10:2070,267605,046,786446,375,000129,818,0002,490,368
9Jan 6, 2026 10:2071,487616,528,958448,385,000137,811,0002,473,984
10Jan 6, 2026 10:2072,448619,131,546462,281,000131,795,0002,367,488
11Jan 6, 2026 10:2073,896630,881,676489,960,000115,990,0002,514,944
12Jan 6, 2026 10:2082,624702,674,678556,605,000120,914,0002,281,472
13Jan 6, 2026 10:2082,779704,656,059561,825,000116,963,0002,379,776
14Jan 6, 2026 10:2090,134766,245,602625,241,000113,861,0002,281,472
15Jan 6, 2026 10:20105,346890,514,875719,030,000144,804,0002,445,312