leetcode_easy_array

​1491. Average Salary Excluding the Minimum and Maximum Salary​

solution #1: 

code

 

solution #2:

code

 

注意:

1. 去除最大最小值之后的平均值;

2. 数组元素是unique的;

3. 返回值类型是double的;

参考

1.​​ leetcode_1491. Average Salary Excluding the Minimum and Maximum Salary​​;