Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Median by jacekgrycza
def max(x):
max=x[0]
for i in x:
if i>max:
max=i
return max
def min(x):
min=x[0]
for i in x:
if i2):
x.remove(max(x))
x.remove(min(x))
if len(x)==1:
return (x[0])
elif len(x)==2:
return (x[0]/2+x[1]/2)
Oct. 26, 2016
Comments: