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 26, 2024 07:58Matt StuchlikMatt StuchlikScore: 15,416Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 26, 2024 07:5814,183139,757,635108,278,0008,020,0002,334,720
2Nov 26, 2024 07:5815,416150,167,397119,391,0007,023,0002,318,336
3Nov 26, 2024 07:5817,079160,398,775122,043,00018,006,0002,363,392