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 listMar 29, 2024 20:33Drew GarciaDrew GarciaScore: 85,644Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 29, 2024 20:2954,024498,337,630442,999,63002,289,664
2Mar 29, 2024 20:3356,073521,589,076459,794,98902,277,376
3Mar 29, 2024 20:3357,070534,678,415467,972,85202,285,568
4Mar 29, 2024 20:5760,789561,487,043498,469,74202,277,376
5Mar 29, 2024 20:2961,896565,423,246507,550,42602,277,376
6Mar 29, 2024 20:5872,903670,115,967597,805,33502,277,376
7Mar 29, 2024 20:5873,010666,312,467598,680,54402,273,280
8Mar 29, 2024 20:5785,644760,864,284702,276,85202,281,472
9Mar 29, 2024 20:3396,773843,601,390793,537,73302,277,376
10Mar 29, 2024 20:29115,1141,003,660,561943,937,67602,277,376
11Mar 29, 2024 20:58122,9651,094,949,5751,008,316,19302,277,376
12Mar 29, 2024 20:33138,6321,195,512,9451,136,784,06202,297,856
13Mar 29, 2024 20:57153,1631,321,895,6621,255,937,48802,273,280
14Mar 29, 2024 20:33164,4631,411,993,4661,348,598,21902,281,472
15Mar 29, 2024 20:33172,2301,485,242,1021,412,289,85002,269,184