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 13, 2021 06:32Sergey StreminSergey StreminScore: 62,682Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 13, 2021 06:3259,772541,577,455490,129,53802,265,088
2Jun 13, 2021 06:3160,118563,069,507492,968,07102,240,512
3Jun 13, 2021 06:3160,437562,511,222495,585,17302,252,800
4Jun 13, 2021 06:3360,735552,081,306498,026,62702,244,608
5Jun 13, 2021 06:3261,067566,981,630500,750,63602,236,416
6Jun 13, 2021 06:3361,592567,775,844505,056,18702,236,416
7Jun 13, 2021 06:3361,864573,359,583507,283,78102,256,896
8Jun 13, 2021 06:3362,682575,394,987513,995,76302,244,608
9Jun 13, 2021 06:3362,808574,542,988515,022,21502,240,512
10Jun 13, 2021 06:3162,872570,792,293515,547,08002,252,800
11Jun 13, 2021 06:3262,873579,857,167515,561,24802,236,416
12Jun 13, 2021 06:3263,053574,305,096517,033,88402,220,032
13Jun 13, 2021 06:3263,117586,211,669517,560,19702,273,280
14Jun 13, 2021 06:3363,729584,840,544522,579,52802,236,416
15Jun 13, 2021 06:3263,737586,086,879522,646,55102,236,416