3194. Minimum Average of Smallest and Largest Elements
Easy
10 Points
Array
Two Pointers
Sorting
You have an array of floating point numbers averages which is initially empty. You are given an array nums of n integers where n is even.
You repeat the following procedure n / 2 times:
Return the minimum element in averages.
3194. Minimum Average of Smallest and Largest Elements
Easy
10 Points
Array
Two Pointers
Sorting
You have an array of floating point numbers averages which is initially empty. You are given an array nums of n integers where n is even.
You repeat the following procedure n / 2 times:
Return the minimum element in averages.