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 2, 2026 05:43Rajarshi BasuRajarshi BasuScore: 7,234Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2026 05:437,16985,232,22051,810,0006,974,0002,277,376
2Jan 2, 2026 05:437,23483,622,69953,286,0006,032,0002,293,760
3Jan 2, 2026 05:437,29391,367,71255,816,0003,986,0002,371,584