You are viewing a single comment's thread. Return to all comments →
Here is my one line Python solution! I'm suprised with how this challenge is worth 35 points when you can solve it in one line!
def findMedian(arr): return sorted(arr)[len(arr) // 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 →
Here is my one line Python solution! I'm suprised with how this challenge is worth 35 points when you can solve it in one line!