1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-10-21 21:16:45 +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>A</code><em>坡</em>是元组&nbsp;<code>(i, j)</code>,其中&nbsp;&nbsp;<code>i &lt; j</code>&nbsp;且&nbsp;<code>A[i] &lt;= A[j]</code>。这样的坡的宽度为&nbsp;<code>j - i</code>。</p>\n\n<p>找出&nbsp;<code>A</code>&nbsp;中的坡的最大宽度,如果不存在,返回 0 。</p>\n\n<p>&nbsp;</p>\n\n<p><strong>示例 1</strong></p>\n\n<pre><strong>输入:</strong>[6,0,8,2,1,5]\n<strong>输出:</strong>4\n<strong>解释:</strong>\n最大宽度的坡为 (i, j) = (1, 5): A[1] = 0 且 A[5] = 5.\n</pre>\n\n<p><strong>示例 2</strong></p>\n\n<pre><strong>输入:</strong>[9,8,1,0,1,9,4,0,4,1]\n<strong>输出:</strong>7\n<strong>解释:</strong>\n最大宽度的坡为 (i, j) = (2, 9): A[2] = 1 且 A[9] = 1.\n</pre>\n\n<p>&nbsp;</p>\n\n<p><strong>提示:</strong></p>\n\n<ol>\n\t<li><code>2 &lt;= A.length &lt;= 50000</code></li>\n\t<li><code>0 &lt;= A[i] &lt;= 50000</code></li>\n</ol>\n\n<p>&nbsp;</p>\n",
"isPaidOnly": false,
"difficulty": "Medium",
"likes": 158,
"likes": 162,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
@@ -149,7 +149,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"16.1K\", \"totalSubmission\": \"35.7K\", \"totalAcceptedRaw\": 16072, \"totalSubmissionRaw\": 35694, \"acRate\": \"45.0%\"}",
"stats": "{\"totalAccepted\": \"16.5K\", \"totalSubmission\": \"36.7K\", \"totalAcceptedRaw\": 16536, \"totalSubmissionRaw\": 36677, \"acRate\": \"45.1%\"}",
"hints": [],
"solution": {
"id": "142",