mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 07:21:40 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给你一个整数数组 <code>salary</code> ,数组里每个数都是 <strong>唯一</strong> 的,其中 <code>salary[i]</code> 是第 <code>i</code> 个员工的工资。</p>\n\n<p>请你返回去掉最低工资和最高工资以后,剩下员工工资的平均值。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre><strong>输入:</strong>salary = [4000,3000,1000,2000]\n<strong>输出:</strong>2500.00000\n<strong>解释:</strong>最低工资和最高工资分别是 1000 和 4000 。\n去掉最低工资和最高工资以后的平均工资是 (2000+3000)/2= 2500\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre><strong>输入:</strong>salary = [1000,2000,3000]\n<strong>输出:</strong>2000.00000\n<strong>解释:</strong>最低工资和最高工资分别是 1000 和 3000 。\n去掉最低工资和最高工资以后的平均工资是 (2000)/1= 2000\n</pre>\n\n<p><strong>示例 3:</strong></p>\n\n<pre><strong>输入:</strong>salary = [6000,5000,4000,3000,2000,1000]\n<strong>输出:</strong>3500.00000\n</pre>\n\n<p><strong>示例 4:</strong></p>\n\n<pre><strong>输入:</strong>salary = [8000,9000,2000,3000,6000,1000]\n<strong>输出:</strong>4750.00000\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>3 <= salary.length <= 100</code></li>\n\t<li><code>10^3 <= salary[i] <= 10^6</code></li>\n\t<li><code>salary[i]</code> 是唯一的。</li>\n\t<li>与真实值误差在 <code>10^-5</code> 以内的结果都将视为正确答案。</li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 32,
|
||||
"likes": 34,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -143,7 +143,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"29.4K\", \"totalSubmission\": \"45.4K\", \"totalAcceptedRaw\": 29391, \"totalSubmissionRaw\": 45387, \"acRate\": \"64.8%\"}",
|
||||
"stats": "{\"totalAccepted\": \"31.7K\", \"totalSubmission\": \"49K\", \"totalAcceptedRaw\": 31655, \"totalSubmissionRaw\": 49023, \"acRate\": \"64.6%\"}",
|
||||
"hints": [
|
||||
"Get the total sum and subtract the minimum and maximum value in the array. Finally divide the result by n - 2."
|
||||
],
|
||||
|
Reference in New Issue
Block a user