[x] 5/1
1491. Average Salary Excluding the Minimum and Maximum Salary
Easy
去除最大最小值得到的平均
class Solution {
public:
double average(vector<int>& salary) {
double sum = 0, max = salary[0], min = salary[0];
Are you sure to leave this team?
Once you delete your team, all team notes will be deleted and cannot be recovered. Please ensure you've exported or transfered these notes.
Enter team name before deleting it:
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up