mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-12-18 02:02:34 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<div class=\"original__bRMd\">\n<div>\n<p>表: <code>Weather</code></p>\n\n<pre>\n+---------------+---------+\n| Column Name | Type |\n+---------------+---------+\n| id | int |\n| recordDate | date |\n| temperature | int |\n+---------------+---------+\nid 是这个表的主键\n该表包含特定日期的温度信息</pre>\n\n<p> </p>\n\n<p>编写一个 SQL 查询,来查找与之前(昨天的)日期相比温度更高的所有日期的 <code>id</code> 。</p>\n\n<p>返回结果 <strong>不要求顺序</strong> 。</p>\n\n<p>查询结果格式如下例。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre>\n<code><strong>输入:</strong>\nWeather 表:</code>\n+----+------------+-------------+\n| id | recordDate | Temperature |\n+----+------------+-------------+\n| 1 | 2015-01-01 | 10 |\n| 2 | 2015-01-02 | 25 |\n| 3 | 2015-01-03 | 20 |\n| 4 | 2015-01-04 | 30 |\n+----+------------+-------------+\n<strong>输出:</strong>\n+----+\n| id |\n+----+\n| 2 |\n| 4 |\n+----+\n<strong>解释:</strong>\n2015-01-02 的温度比前一天高(10 -> 25)\n2015-01-04 的温度比前一天高(20 -> 30)</pre>\n</div>\n</div>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 284,
|
||||
"likes": 296,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -47,7 +47,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"113.8K\", \"totalSubmission\": \"214K\", \"totalAcceptedRaw\": 113847, \"totalSubmissionRaw\": 214042, \"acRate\": \"53.2%\"}",
|
||||
"stats": "{\"totalAccepted\": \"119.1K\", \"totalSubmission\": \"223.3K\", \"totalAcceptedRaw\": 119068, \"totalSubmissionRaw\": 223304, \"acRate\": \"53.3%\"}",
|
||||
"hints": [],
|
||||
"solution": {
|
||||
"id": "96",
|
||||
@@ -55,7 +55,7 @@
|
||||
"__typename": "ArticleNode"
|
||||
},
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\": {\"Weather\": [\"id\", \"recordDate\", \"temperature\"]}, \"rows\": {\"Weather\": [[1, \"2015-01-01\", 10], [2, \"2015-01-02\", 25], [3, \"2015-01-03\", 20], [4, \"2015-01-04\", 30]]}}",
|
||||
"sampleTestCase": "{\"headers\": {\"Weather\": [\"Id\", \"RecordDate\", \"Temperature\"]}, \"rows\": {\"Weather\": [[1, \"2015-01-01\", 10], [2, \"2015-01-02\", 25], [3, \"2015-01-03\", 20], [4, \"2015-01-04\", 30]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Weather (id int, recordDate date, temperature int)\"\n ],\n \"mssql\": [\n \"Create table Weather (id int, recordDate date, temperature int)\"\n ],\n \"oraclesql\": [\n \"Create table Weather (id int, recordDate date, temperature int)\",\n \"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
|
||||
Reference in New Issue
Block a user