We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
#!/bin/python3importsysdefminiMaxSum(arr):# Complete this functionarr.sort()tot=sum(arr)print((tot-arr[-1]),(tot-arr[0]))if__name__=="__main__":arr=list(map(int,input().strip().split(' ')))miniMaxSum(arr)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Mini-Max Sum
You are viewing a single comment's thread. Return to all comments →
python 3