mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-10 18:48:13 +08:00
64 lines
5.3 KiB
JSON
64 lines
5.3 KiB
JSON
{
|
|
"data": {
|
|
"question": {
|
|
"questionId": "2451",
|
|
"questionFrontendId": "2324",
|
|
"boundTopicId": null,
|
|
"title": "Product Sales Analysis IV",
|
|
"titleSlug": "product-sales-analysis-iv",
|
|
"content": null,
|
|
"translatedTitle": null,
|
|
"translatedContent": null,
|
|
"isPaidOnly": true,
|
|
"difficulty": "Medium",
|
|
"likes": 45,
|
|
"dislikes": 1,
|
|
"isLiked": null,
|
|
"similarQuestions": "[{\"title\": \"Product Sales Analysis I\", \"titleSlug\": \"product-sales-analysis-i\", \"difficulty\": \"Easy\", \"translatedTitle\": null}, {\"title\": \"Product Sales Analysis II\", \"titleSlug\": \"product-sales-analysis-ii\", \"difficulty\": \"Easy\", \"translatedTitle\": null}, {\"title\": \"Product Sales Analysis III\", \"titleSlug\": \"product-sales-analysis-iii\", \"difficulty\": \"Medium\", \"translatedTitle\": null}]",
|
|
"exampleTestcases": "{\"headers\": {\"Sales\": [\"sale_id\", \"product_id\", \"user_id\", \"quantity\"], \"Product\": [\"product_id\", \"price\"]}, \"rows\": {\"Sales\": [[1, 1, 101, 10], [2, 3, 101, 7], [3, 1, 102, 9], [4, 2, 102, 6], [5, 3, 102, 10], [6, 1, 102, 6]], \"Product\": [[1, 10], [2, 25], [3, 15]]}}",
|
|
"categoryTitle": "Database",
|
|
"contributors": [],
|
|
"topicTags": [
|
|
{
|
|
"name": "Database",
|
|
"slug": "database",
|
|
"translatedName": null,
|
|
"__typename": "TopicTagNode"
|
|
}
|
|
],
|
|
"companyTagStats": null,
|
|
"codeSnippets": null,
|
|
"stats": "{\"totalAccepted\": \"5.6K\", \"totalSubmission\": \"7.8K\", \"totalAcceptedRaw\": 5607, \"totalSubmissionRaw\": 7759, \"acRate\": \"72.3%\"}",
|
|
"hints": [],
|
|
"solution": null,
|
|
"status": null,
|
|
"sampleTestCase": "{\"headers\": {\"Sales\": [\"sale_id\", \"product_id\", \"user_id\", \"quantity\"], \"Product\": [\"product_id\", \"price\"]}, \"rows\": {\"Sales\": [[1, 1, 101, 10], [2, 3, 101, 7], [3, 1, 102, 9], [4, 2, 102, 6], [5, 3, 102, 10], [6, 1, 102, 6]], \"Product\": [[1, 10], [2, 25], [3, 15]]}}",
|
|
"metaData": "{\"mysql\": [\"Create table If Not Exists Sales (sale_id int, product_id int, user_id int, quantity int)\", \"Create table If Not Exists Product (product_id int, price int)\"], \"mssql\": [\"Create table Sales (sale_id int, product_id int, user_id int, quantity int)\", \"Create table Product (product_id int, price int)\"], \"oraclesql\": [\"Create table Sales (sale_id int, product_id int, user_id int, quantity int)\", \"Create table Product (product_id int, price int)\"], \"database\": true, \"name\": \"product_sales_analysis\", \"pythondata\": [\"Sales = pd.DataFrame([], columns=['sale_id', 'product_id', 'user_id', 'quantity']).astype({'sale_id':'Int64', 'product_id':'Int64', 'user_id':'Int64', 'quantity':'Int64'})\", \"Product = pd.DataFrame([], columns=['product_id', 'price']).astype({'product_id':'Int64', 'price':'Int64'})\"], \"postgresql\": [\"Create table If Not Exists Sales (sale_id int, product_id int, user_id int, quantity int)\", \"Create table If Not Exists Product (product_id int, price int)\"], \"database_schema\": {\"Sales\": {\"sale_id\": \"INT\", \"product_id\": \"INT\", \"user_id\": \"INT\", \"quantity\": \"INT\"}, \"Product\": {\"product_id\": \"INT\", \"price\": \"INT\"}}}",
|
|
"judgerAvailable": true,
|
|
"judgeType": "large",
|
|
"mysqlSchemas": [
|
|
"Create table If Not Exists Sales (sale_id int, product_id int, user_id int, quantity int)",
|
|
"Create table If Not Exists Product (product_id int, price int)",
|
|
"Truncate table Sales",
|
|
"insert into Sales (sale_id, product_id, user_id, quantity) values ('1', '1', '101', '10')",
|
|
"insert into Sales (sale_id, product_id, user_id, quantity) values ('2', '3', '101', '7')",
|
|
"insert into Sales (sale_id, product_id, user_id, quantity) values ('3', '1', '102', '9')",
|
|
"insert into Sales (sale_id, product_id, user_id, quantity) values ('4', '2', '102', '6')",
|
|
"insert into Sales (sale_id, product_id, user_id, quantity) values ('5', '3', '102', '10')",
|
|
"insert into Sales (sale_id, product_id, user_id, quantity) values ('6', '1', '102', '6')",
|
|
"Truncate table Product",
|
|
"insert into Product (product_id, price) values ('1', '10')",
|
|
"insert into Product (product_id, price) values ('2', '25')",
|
|
"insert into Product (product_id, price) values ('3', '15')"
|
|
],
|
|
"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>\"], \"pythondata\": [\"Pandas\", \"<p>Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0</p>\"], \"postgresql\": [\"PostgreSQL\", \"<p>PostgreSQL 16</p>\"]}",
|
|
"libraryUrl": null,
|
|
"adminUrl": null,
|
|
"challengeQuestion": null,
|
|
"__typename": "QuestionNode"
|
|
}
|
|
}
|
|
} |