You are viewing a single comment's thread. Return to all comments →
sort(arr.begin(), arr.end()); int minsum = arr[0]+arr[1]+arr[2]+arr[3]; int maxsum= arr[1]+arr[2]+arr[3]+arr[4]; cout<<minsum<<maxsum<<endl;
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 →