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 listJun 12, 2021 23:08Yuriy LyfenkoYuriy LyfenkoScore: 44,893Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 12, 2021 23:0843,307421,590,897355,120,63002,297,856
2Jun 12, 2021 23:0844,893438,670,786368,120,15102,285,568
3Jun 12, 2021 23:0846,170447,017,482378,593,32602,269,184