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 listOct 9, 2023 02:53sliceteamsliceteamScore: 955,349Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 9, 2023 02:53955,0727,896,035,7367,831,588,90502,285,568
2Oct 9, 2023 02:53955,3497,907,084,4447,833,862,12302,285,568
3Oct 9, 2023 02:53958,5087,943,318,5737,859,765,21502,285,568