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 listJan 3, 2023 16:25A L ManningA L ManningScore: 605,466Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 3, 2023 16:25603,1625,022,713,1134,945,928,16602,244,608
2Jan 3, 2023 16:25605,4665,025,479,9244,964,817,16802,252,800
3Jan 3, 2023 16:25607,6885,051,124,3914,983,040,11702,240,512