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 listSep 12, 2022 09:38eldon-chungeldon-chungError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 12, 2022 09:3900000Error: No answer to stdout. Died or killed?stderr
2Sep 12, 2022 09:3900000Error: No answer to stdout. Died or killed?stderr
3Sep 12, 2022 09:3900000Error: No answer to stdout. Died or killed?stderr
4Sep 12, 2022 09:3800000Error: No answer to stdout. Died or killed?stderr
5Sep 12, 2022 09:398,523137,172,39269,892,30102,285,568
6Sep 12, 2022 09:398,988137,573,65973,705,68502,285,568
7Sep 12, 2022 09:389,057128,160,88174,267,25502,277,376
8Sep 12, 2022 09:399,072138,679,34574,387,66302,232,320
9Sep 12, 2022 09:399,578141,428,81578,542,46802,289,664
10Sep 12, 2022 09:399,769148,186,88980,106,68102,240,512
11Sep 12, 2022 09:399,850159,210,80380,768,06902,256,896
12Sep 12, 2022 09:3810,130143,959,58183,069,36502,228,224
13Sep 12, 2022 09:3910,316153,798,58784,592,93802,236,416
14Sep 12, 2022 09:3910,322144,144,42184,644,11402,224,128
15Sep 12, 2022 09:3810,400147,379,18485,280,96602,199,552
16Sep 12, 2022 09:3910,534150,563,51286,382,52002,228,224
17Sep 12, 2022 09:3910,783151,582,64288,424,41102,191,360
18Sep 12, 2022 09:3910,786168,333,86488,443,42602,273,280
19Sep 12, 2022 09:3910,831156,287,54488,811,10402,297,856
20Sep 12, 2022 09:3911,123156,753,52291,204,52502,187,264
21Sep 12, 2022 09:3911,334157,765,90892,935,50202,240,512
22Sep 12, 2022 09:3911,550180,048,11994,707,54602,224,128