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 26, 2024 21:31Jonathan Allen GrantJonathan Allen GrantScore: 969,076Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 26, 2024 21:31960,5977,938,935,4107,876,891,43502,289,664
2Jan 26, 2024 21:31969,0768,010,337,2417,946,425,60102,281,472
3Jan 26, 2024 21:31969,7608,026,079,0557,952,028,96902,289,664