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 listNov 25, 2023 20:09mmalczakmmalczakScore: 307,925Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 25, 2023 20:09297,7362,492,568,4042,441,437,46302,170,880
2Nov 25, 2023 20:09307,9252,587,593,7812,524,982,70502,293,760
3Nov 25, 2023 20:09321,8142,701,050,4062,638,872,83602,174,976