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 10, 2023 11:43A L ManningA L ManningScore: 85,788Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 10, 2023 11:4377,923698,483,730638,966,21402,248,704
2Jan 10, 2023 11:4385,788764,706,134703,461,11802,244,608
3Jan 10, 2023 11:43105,833933,912,920867,826,73902,244,608