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 7, 2026 07:34Rajarshi BasuRajarshi BasuScore: 75,166Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 7, 2026 07:344,38773,215,60733,974,0001,998,0002,326,528
2Jan 7, 2026 07:344,42962,028,44031,274,0005,044,0002,306,048
3Jan 7, 2026 07:344,43563,728,02030,305,0006,061,0002,334,720
4Jan 7, 2026 07:3767,102580,544,631428,405,000121,830,0002,281,472
5Jan 7, 2026 07:3471,286614,979,274465,640,000118,908,0002,490,368
6Jan 7, 2026 07:3771,916615,279,360463,773,000125,938,0002,514,944
7Jan 7, 2026 07:3773,936632,169,864492,412,000113,864,0002,424,832
8Jan 7, 2026 07:3775,166645,205,390502,479,000113,882,0002,387,968
9Jan 7, 2026 07:3476,525657,790,074497,607,000129,897,0002,285,568
10Jan 7, 2026 07:3477,074656,416,538506,006,000126,001,0002,285,568
11Jan 7, 2026 07:3779,422676,551,831523,408,000127,855,0002,502,656
12Jan 7, 2026 07:3479,812686,154,917531,559,000122,898,0002,420,736
13Jan 7, 2026 07:3479,850684,370,046534,815,000119,958,0002,469,888
14Jan 7, 2026 07:3487,325742,742,948608,203,000107,858,0002,494,464
15Jan 7, 2026 07:37101,815860,707,362708,053,000126,830,0002,412,544