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