Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Clear category for Median by tarasenkoa
def checkio(data):
sz = len(data)
data.sort()
return data[sz//2] if sz % 2 == 1 else (data[sz//2] + data[sz//2 - 1]) / 2.0
Aug. 2, 2015
Comments: