Mini-Max Sum

  • + 0 comments

    log(n) in Python:

    def miniMaxSum(arr):
        # Write your code here
        
    
       max_element = max(arr)
       min_element = min(arr)
       total = sum(arr)
       print(total-max_element,total-min_element)