• + 0 comments

    In python we can do it in a single line:

    print(sum(arr)-max(arr),sum(arr)-min(arr))