You are viewing a single comment's thread. Return to all comments →
public static void miniMaxSum(List arr) { arr.Sort(); long min = arr[0], sum = 0, max = arr[arr.Count-1]; for(int i=0;i
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 →
public static void miniMaxSum(List arr) { arr.Sort(); long min = arr[0], sum = 0, max = arr[arr.Count-1]; for(int i=0;i