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 13, 2024 02:15zielajzielajScore: 14,325Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 13, 2024 02:1514,033140,354,060100,060,00015,009,0002,363,392
2Oct 13, 2024 02:1514,068141,782,599100,313,00015,047,0002,297,856
3Oct 13, 2024 21:3714,081143,171,005101,410,00014,056,0002,482,176
4Oct 13, 2024 21:3714,129141,031,527103,872,00011,985,0002,469,888
5Oct 13, 2024 02:1514,188143,510,24299,294,00017,050,0002,338,816
6Oct 13, 2024 02:1514,207146,658,916107,462,0009,038,0002,387,968
7Oct 13, 2024 21:3714,263145,466,27698,964,00017,993,0002,375,680
8Oct 13, 2024 21:3714,305140,819,902102,266,00015,039,0002,482,176
9Oct 13, 2024 21:3714,313143,170,630105,331,00012,037,0002,486,272
10Oct 13, 2024 02:1514,325140,670,050100,397,00017,067,0002,396,160
11Oct 13, 2024 02:1514,373139,474,544106,874,00010,987,0002,347,008
12Oct 13, 2024 02:1514,428141,635,246105,279,00013,034,0002,416,640
13Oct 13, 2024 02:1514,473144,565,28299,731,00018,949,0002,453,504
14Oct 13, 2024 02:1514,487149,340,221106,814,00011,979,0002,301,952
15Oct 13, 2024 21:3714,554147,519,080104,298,00015,043,0002,428,928
16Oct 13, 2024 21:3714,687147,795,412103,373,00017,061,0002,289,664
17Oct 13, 2024 21:3714,818146,673,144100,423,00021,088,0002,506,752
18Oct 13, 2024 21:3714,840151,811,087109,721,00011,969,0002,437,120