mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-04 06:51:41 +08:00
update
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1518",
|
||||
"questionFrontendId": "1384",
|
||||
"boundTopicId": null,
|
||||
"title": "Total Sales Amount by Year",
|
||||
"titleSlug": "total-sales-amount-by-year",
|
||||
"content": null,
|
||||
"translatedTitle": null,
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Hard",
|
||||
"likes": 137,
|
||||
"dislikes": 67,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"exampleTestcases": "{\"headers\": {\"Product\": [\"product_id\", \"product_name\"], \"Sales\": [\"product_id\", \"period_start\", \"period_end\", \"average_daily_sales\"]}, \"rows\": {\"Product\": [[1, \"LC Phone \"], [2, \"LC T-Shirt\"], [3, \"LC Keychain\"]], \"Sales\": [[1, \"2019-01-25\", \"2019-02-28\", 100], [2, \"2018-12-01\", \"2020-01-01\", 10], [3, \"2019-12-01\", \"2020-01-31\", 1]]}}",
|
||||
"categoryTitle": "Database",
|
||||
"contributors": [],
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": null,
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"9.2K\", \"totalSubmission\": \"13.9K\", \"totalAcceptedRaw\": 9220, \"totalSubmissionRaw\": 13926, \"acRate\": \"66.2%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\": {\"Product\": [\"product_id\", \"product_name\"], \"Sales\": [\"product_id\", \"period_start\", \"period_end\", \"average_daily_sales\"]}, \"rows\": {\"Product\": [[1, \"LC Phone \"], [2, \"LC T-Shirt\"], [3, \"LC Keychain\"]], \"Sales\": [[1, \"2019-01-25\", \"2019-02-28\", 100], [2, \"2018-12-01\", \"2020-01-01\", 10], [3, \"2019-12-01\", \"2020-01-31\", 1]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Product (product_id int, product_name varchar(30))\",\n \"Create table If Not Exists Sales (product_id varchar(30), period_start date, period_end date, average_daily_sales int)\"\n ],\n \"mssql\": [\n \"Create table Product (product_id int, product_name varchar(30))\",\n \"Create table Sales (product_id varchar(30), period_start date, period_end date, average_daily_sales int)\"\n ],\n \"oraclesql\": [\n \"Create table Product (product_id int, product_name varchar(30))\",\n \"Create table Sales (product_id varchar(30), period_start date, period_end date, average_daily_sales int)\",\n \"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Product (product_id int, product_name varchar(30))",
|
||||
"Create table If Not Exists Sales (product_id varchar(30), period_start date, period_end date, average_daily_sales int)",
|
||||
"Truncate table Product",
|
||||
"insert into Product (product_id, product_name) values ('1', 'LC Phone ')",
|
||||
"insert into Product (product_id, product_name) values ('2', 'LC T-Shirt')",
|
||||
"insert into Product (product_id, product_name) values ('3', 'LC Keychain')",
|
||||
"Truncate table Sales",
|
||||
"insert into Sales (product_id, period_start, period_end, average_daily_sales) values ('1', '2019-01-25', '2019-02-28', '100')",
|
||||
"insert into Sales (product_id, period_start, period_end, average_daily_sales) values ('2', '2018-12-01', '2020-01-01', '10')",
|
||||
"insert into Sales (product_id, period_start, period_end, average_daily_sales) values ('3', '2019-12-01', '2020-01-31', '1')"
|
||||
],
|
||||
"enableRunCode": true,
|
||||
"enableTestMode": false,
|
||||
"enableDebugger": false,
|
||||
"envInfo": "{\"mysql\": [\"MySQL\", \"<p><code>MySQL 8.0</code>.</p>\"], \"mssql\": [\"MS SQL Server\", \"<p><code>mssql server 2019</code>.</p>\"], \"oraclesql\": [\"Oracle\", \"<p><code>Oracle Sql 11.2</code>.</p>\"]}",
|
||||
"libraryUrl": null,
|
||||
"adminUrl": null,
|
||||
"challengeQuestion": null,
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user