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 listOct 3, 2026 01:43Karthik ReddyKarthik ReddyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 3, 2026 01:430326,751,688316,560,0001,020,00020,480expected "2066346470 ", got "M 0 5292 1128 991808 19 6 7 1007 1003 1006 "
2Oct 3, 2026 01:430324,837,417315,787,000020,480expected "2271524228 ", got "M 0 1537 107 926272 18 6 4653 1001 1008 1004 "
3Oct 3, 2026 01:432,49429,563,94720,458,000020,480