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 listOct 18, 2024 17:47Sybrand AarnoutseSybrand AarnoutseScore: 226,420Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 18, 2024 17:43154,3791,429,398,251836,261,000429,648,0002,486,272
2Oct 18, 2024 17:47177,8531,713,790,873892,794,000565,602,0002,461,696
3Oct 18, 2024 17:43196,4522,098,541,836892,501,000718,403,0002,482,176
4Oct 18, 2024 17:43208,1622,040,643,2341,001,960,000704,972,0002,498,560
5Oct 18, 2024 17:43212,6342,116,447,1431,056,305,000687,294,0002,510,848
6Oct 18, 2024 17:43213,3152,352,028,798959,099,000790,082,0002,478,080
7Oct 18, 2024 17:43226,4202,223,342,5931,110,983,000745,659,0002,453,504
8Oct 18, 2024 17:47259,5213,576,226,5591,056,617,0001,071,457,0002,498,560
9Oct 18, 2024 17:43276,3542,890,974,0801,204,360,0001,061,739,0002,404,352
10Oct 18, 2024 17:43307,5193,287,488,9661,360,116,0001,161,537,0002,424,832
11Oct 18, 2024 17:43365,7115,298,872,0271,408,388,0001,590,439,0002,392,064
12Oct 18, 2024 17:47389,3276,335,956,5621,431,528,0001,760,950,0002,490,368