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 08:58eldon-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 08:5800000Error: No answer to stdout. Died or killed?stderr
2Sep 12, 2022 09:0000000Error: expected "2375477540 ", got "0 "stderr
3Sep 12, 2022 08:5900000Error: No answer to stdout. Died or killed?stderr
4Sep 12, 2022 08:5900000Error: No answer to stdout. Died or killed?stderr
5Sep 12, 2022 08:5900000Error: No answer to stdout. Died or killed?stderr
6Sep 12, 2022 08:5900000Error: No answer to stdout. Died or killed?stderr
7Sep 12, 2022 08:5800000Error: No answer to stdout. Died or killed?stderr
8Sep 12, 2022 08:5800000Error: No answer to stdout. Died or killed?stderr
9Sep 12, 2022 08:5800000Error: No answer to stdout. Died or killed?stderr
10Sep 12, 2022 08:599,375139,690,06476,879,03602,273,280
11Sep 12, 2022 08:599,632156,182,52578,982,49702,207,744
12Sep 12, 2022 09:009,718146,550,87579,690,75402,293,760
13Sep 12, 2022 08:599,783139,372,52280,222,06302,215,936
14Sep 12, 2022 08:5910,200151,984,21483,641,00202,289,664
15Sep 12, 2022 09:0010,364142,680,79984,985,05402,252,800
16Sep 12, 2022 08:5910,364145,506,87384,981,25102,244,608
17Sep 12, 2022 09:0010,486147,708,25685,981,71402,285,568
18Sep 12, 2022 08:5911,246152,552,05892,213,94302,203,648