1619. Mean of Array After Removing Some Elements
https://leetcode.com/problems/mean-of-array-after-removing-some-elements
Description
Given an integer array arr
, return the mean of the remaining integers after removing the smallest 5%
and the largest 5%
of the elements.
Answers within 10-5
of the actual answer will be considered accepted.
Example 1:
Example 2:
Example 3:
Example 4:
Example 5:
Constraints:
20 <= arr.length <= 1000
arr.length
is a multiple of20
.0 <= arr[i] <= 105
ac
Previous1618. Maximum Font to Fit a Sentence in a ScreenNext1620. Coordinate With Maximum Network Quality
Last updated