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