1491. Average Salary Excluding the Minimum and Maximum Salary
https://leetcode.com/problems/average-salary-excluding-the-minimum-and-maximum-salary
Description
Given an array of unique integers salary
where salary[i]
is the salary of the employee i
.
Return the average salary of employees excluding the minimum and maximum salary.
Example 1:
Example 2:
Example 3:
Example 4:
Constraints:
3 <= salary.length <= 100
10^3 <= salary[i] <= 10^6
salary[i]
is unique.Answers within
10^-5
of the actual value will be accepted as correct.
ac
Last updated