Maybe this is the easiest problem on leetcode.
Problem
1491. Average Salary Excluding the Minimum and Maximum Salary
Java
\( O(N) \)
1 | class Solution { |
Submission Detail
- 43 / 43 test cases passed.
- Runtime: 0 ms, faster than 100.00% of Java online submissions for Average Salary Excluding the Minimum and Maximum Salary.
- Memory Usage: 37.1 MB, less than 11.62% of Java online submissions for Average Salary Excluding the Minimum and Maximum Salary.
\( O(NlogN) \)
1 | class Solution { |
Submission Detail
- 43 / 43 test cases passed.
- Runtime: 0 ms, faster than 100.00% of Java online submissions for Average Salary Excluding the Minimum and Maximum Salary.
- Memory Usage: 36.7 MB, less than 75.02% of Java online submissions for Average Salary Excluding the Minimum and Maximum Salary.