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 listJul 8, 2021 21:08Vitaliy F.Vitaliy F.Score: 134,196Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2021 21:08117,0411,030,547,348959,734,31002,252,800
2Jul 8, 2021 21:08134,1961,159,854,1371,100,407,76602,256,896
3Jul 8, 2021 21:08164,9751,412,225,3291,352,796,99802,265,088