Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Median solution solution in Clear category for Median by Fokzterrier
def checkio(data):
data.sort()
a = int(len(data))/ 2
c = int(len(data))//2
if len(data) % 2 == 0:
median = (data[int(a)]+data[int(a)-1])/2
else:
median = data[c]
return median
Oct. 23, 2016