Easy
,Array
,Sorting
1491. Average Salary Excluding the Minimum and Maximum Salary
You are given an array of unique integers salary
where salary[i]
is the salary of the ith employee.
Return the average salary of employees excluding the minimum and maximum salary. Answers within 10-5 of the actual answer will be accepted.
Example 1:
Example 2:
Constraints:
salary.length
<= 100salary[i]
<= 106salary
are unique.MarsgoatMay 1, 2023
Ron ChenTue, May 2, 2023