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