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 listJun 12, 2021 18:23Yuriy LyfenkoYuriy LyfenkoScore: 32,302Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 12, 2021 18:2431,687314,594,961259,836,52502,297,856
2Jun 12, 2021 18:2331,703313,240,162259,963,15402,215,936
3Jun 12, 2021 18:0131,751321,157,432260,360,03502,293,760
4Jun 12, 2021 17:5731,786324,339,952260,647,20402,240,512
5Jun 12, 2021 18:2431,791333,822,776260,687,69602,293,760
6Jun 12, 2021 18:0131,985321,586,667262,280,53702,244,608
7Jun 12, 2021 18:0132,045326,498,333262,771,77702,289,664
8Jun 12, 2021 17:5732,259322,390,112264,522,29302,285,568
9Jun 12, 2021 18:2332,263333,461,742264,556,37902,289,664
10Jun 12, 2021 18:0132,279329,070,263264,683,83602,297,856
11Jun 12, 2021 18:2432,302324,217,115264,880,43402,297,856
12Jun 12, 2021 18:0132,682330,711,052267,989,04402,306,048
13Jun 12, 2021 18:2332,873324,961,061269,560,50502,310,144
14Jun 12, 2021 18:0132,922324,585,112269,956,33502,297,856
15Jun 12, 2021 18:2333,021331,343,332270,772,02002,293,760
16Jun 12, 2021 18:2433,082330,911,196271,272,22202,301,952
17Jun 12, 2021 18:2438,952383,478,947319,404,53402,306,048
18Jun 12, 2021 17:5740,973389,813,790335,976,11202,297,856
19Jun 12, 2021 18:2342,546417,667,710348,874,92302,297,856
20Jun 12, 2021 18:2342,605415,303,883349,363,76102,293,760
21Jun 12, 2021 18:2445,114423,965,749369,933,46302,285,568