You are viewing a single comment's thread. Return to all comments →
#python #oddNeven def findMedian(arr): le=len(arr) arr.sort() return arr[le//2] if le %2!=0 else (arr[le//2] + (arr[(le//2)-1]))/2
Seems like cookies are disabled on this browser, please enable them to open this website
Find the Median
You are viewing a single comment's thread. Return to all comments →