Search
⌘K
Get Premium
Leetcode 1619. Mean of Array After Removing Some Elements
Compute the mean of an integer array after removing the smallest 5% and largest 5% of elements (i.e., trim n/20 elements from each end) and return the average of the remaining values. Note: array length is a multiple of 20 and answers within 1e-5 are accepted.
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.