Search
⌘K
Get Premium
Leetcode 3194. Minimum Average of Smallest and Largest Elements
Given an even-length integer array, repeatedly pair the smallest and largest elements, compute their averages, and return the smallest such average — equivalently, sort the array and take the minimum of (nums[i] + nums[n-1-i]) / 2 across all i.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.