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.
- Mini-Max Sum
- Discussions
Mini-Max Sum
Mini-Max Sum
Sort by
recency
|
378 Discussions
|
Please Login in order to post a comment
Python
def miniMaxSum(arr): sums = [] for n in arr: total = sum(arr)-n sums.append(total) print(f"{min(sums)} {max(sums)}")
Tried all hard to get to this -
TypeScript Solutions
Solution 1
Solution 2
How do you make sure the calculated sum is a 64 bit integer (since the sum might require more than 32 bits) without using numpy?