mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-07 08:21:41 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给定一个整数数组 <code>temperatures</code> ,表示每天的温度,返回一个数组 <code>answer</code> ,其中 <code>answer[i]</code> 是指对于第 <code>i</code> 天,下一个更高温度出现在几天后。如果气温在这之后都不会升高,请在该位置用 <code>0</code> 来代替。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre>\n<strong>输入:</strong> <code>temperatures</code> = [73,74,75,71,69,72,76,73]\n<strong>输出:</strong> [1,1,4,2,1,1,0,0]\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre>\n<strong>输入:</strong> temperatures = [30,40,50,60]\n<strong>输出:</strong> [1,1,1,0]\n</pre>\n\n<p><strong>示例 3:</strong></p>\n\n<pre>\n<strong>输入:</strong> temperatures = [30,60,90]\n<strong>输出: </strong>[1,1,0]</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 <= temperatures.length <= 10<sup>5</sup></code></li>\n\t<li><code>30 <= temperatures[i] <= 100</code></li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 1659,
|
||||
"likes": 1660,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[{\"title\": \"Next Greater Element I\", \"titleSlug\": \"next-greater-element-i\", \"difficulty\": \"Easy\", \"translatedTitle\": \"\\u4e0b\\u4e00\\u4e2a\\u66f4\\u5927\\u5143\\u7d20 I\", \"isPaidOnly\": false}]",
|
||||
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"489.3K\", \"totalSubmission\": \"711.7K\", \"totalAcceptedRaw\": 489303, \"totalSubmissionRaw\": 711707, \"acRate\": \"68.8%\"}",
|
||||
"stats": "{\"totalAccepted\": \"489.4K\", \"totalSubmission\": \"711.9K\", \"totalAcceptedRaw\": 489420, \"totalSubmissionRaw\": 711862, \"acRate\": \"68.8%\"}",
|
||||
"hints": [
|
||||
"If the temperature is say, 70 today, then in the future a warmer temperature must be either 71, 72, 73, ..., 99, or 100. We could remember when all of them occur next."
|
||||
],
|
||||
|
Reference in New Issue
Block a user