Find the Median

  • + 0 comments
    def findMedian(arr):
        # Write your code here
        low = 0
        high = len(arr) - 1
        mid = (low + high) // 2
        
        return sorted(arr)[mid]