Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Using sorted solution in Clear category for Median by erykcoapl
from typing import List
def checkio(data: List[int]) -> [int, float]:
data = sorted(data)
return (data[(len(data)-1)//2]+data[len(data)//2])/2
March 16, 2021
Comments: