Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Median by slickLash
def checkio(data):
data.sort()
size = len(data)
mid = size // 2
return data[mid] if size % 2 != 0 else sum(data[mid - 1:mid + 1]) / 2
Feb. 20, 2015
Comments: