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 15:35Drew GarciaDrew GarciaScore: 115,508Success
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 15:35107,910940,171,491884,863,40102,277,376
2Mar 29, 2024 15:35115,5081,003,454,740947,164,52102,281,472
3Mar 29, 2024 15:35186,4071,596,241,1671,528,534,65402,281,472