1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-05 07:21:40 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-05-02 23:44:12 +08:00
parent 7ea03594b3
commit 2a71c78585
4790 changed files with 11696 additions and 10944 deletions

View File

@@ -12,7 +12,7 @@
"translatedContent": "<p>给你一个整数数组&nbsp;<code>salary</code>&nbsp;,数组里每个数都是 <strong>唯一</strong>&nbsp;的,其中&nbsp;<code>salary[i]</code> 是第&nbsp;<code>i</code>&nbsp;个员工的工资。</p>\n\n<p>请你返回去掉最低工资和最高工资以后,剩下员工工资的平均值。</p>\n\n<p>&nbsp;</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>&nbsp;</p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>3 &lt;= salary.length &lt;= 100</code></li>\n\t<li><code>10^3&nbsp;&lt;= salary[i] &lt;= 10^6</code></li>\n\t<li><code>salary[i]</code>&nbsp;是唯一的。</li>\n\t<li>与真实值误差在&nbsp;<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."
],