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 listDec 9, 2024 00:35Hayden DonnellyHayden DonnellyScore: 104,416Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 9, 2024 00:2292,770785,859,387650,759,000109,959,0002,461,696
2Dec 9, 2024 00:2293,504787,321,169642,773,000123,956,0002,285,568
3Dec 9, 2024 00:2295,236810,659,464665,947,000114,990,0002,285,568
4Dec 9, 2024 00:2297,228824,409,194678,378,000118,891,0002,461,696
5Dec 9, 2024 00:2297,872823,461,165691,612,000110,937,0002,400,256
6Dec 9, 2024 00:22103,793882,679,092734,227,000116,877,0002,457,600
7Dec 9, 2024 00:35104,416885,816,166735,320,000120,888,0002,392,064
8Dec 9, 2024 00:22109,007918,563,790778,877,000114,981,0002,433,024
9Dec 9, 2024 00:35109,496925,671,804782,887,000114,983,0002,400,256
10Dec 9, 2024 00:22110,440932,410,283789,656,000115,949,0002,457,600
11Dec 9, 2024 00:22111,752941,961,857802,445,000113,921,0002,461,696
12Dec 9, 2024 00:35118,597995,931,736861,550,000110,942,0002,519,040