Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Median.c solution in Clear category for Median by trudnopodobny
from typing import List
def checkio(data: List[int]) -> [int, float]:
data.sort()
if len(data) % 2 == 0:
return (data[len(data)//2]+data[(len(data)//2)-1])/2
return data[(len(data)-1)//2]
Oct. 8, 2018