You are viewing a single comment's thread. Return to all comments →
// C# error
public static void miniMaxSum(List<int> arr) { long sumTotal = arr.Sum(); long maxE = arr.Max(); long minE = arr.Min(); long min = sumTotal - maxE; long max = sumTotal - minE; Console.WriteLine($"{min} {max}"); }
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 →
// C# error