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 13, 2024 02:33cashkarucashkaruScore: 108,596Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 13, 2024 02:33108,054950,445,422886,046,19902,301,952
2Jan 13, 2024 02:33108,596954,542,382890,488,63302,297,856
3Jan 13, 2024 02:33113,315982,468,796929,181,82402,301,952