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 11, 2022 15:19Bernard TeoBernard TeoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 11, 2022 15:1900000Error: expected "2323224621 ", got "1"
2Sep 11, 2022 15:1914,513190,554,546119,002,94002,191,360
3Sep 11, 2022 15:1914,522190,553,793119,082,59702,195,456
4Nov 19, 2022 17:4114,689194,486,138120,453,32102,260,992
5Nov 19, 2022 17:4114,774188,272,478121,142,92802,297,856
6Nov 19, 2022 17:4114,877186,886,117121,992,55202,273,280
7Nov 19, 2022 17:4115,256190,067,809125,099,61402,273,280
8Nov 19, 2022 17:4215,277191,341,054125,273,63402,252,800
9Sep 11, 2022 15:1915,547202,486,545127,488,47402,289,664
10Nov 19, 2022 17:4115,797188,478,517129,535,65702,195,456
11Nov 19, 2022 17:4115,931184,636,396130,633,71402,301,952
12Nov 19, 2022 17:4216,103217,296,532132,046,41002,191,360
13Nov 19, 2022 17:4216,369187,702,938134,229,77502,301,952
14Nov 19, 2022 17:4116,562200,338,404135,812,20802,248,704
15Nov 19, 2022 17:4116,753214,639,223137,377,79502,215,936
16Nov 19, 2022 17:4116,850225,664,493138,172,11902,248,704
17Sep 11, 2022 15:1916,944215,818,567138,939,71802,244,608
18Nov 19, 2022 17:4117,068220,541,721139,957,28802,285,568
19Nov 19, 2022 17:4117,135217,661,454140,509,42502,220,032
20Sep 11, 2022 15:1917,359209,500,659142,343,91402,236,416
21Nov 19, 2022 17:4117,631214,294,492144,575,54702,224,128
22Sep 11, 2022 15:1918,101221,861,328148,425,69102,187,264