mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-10 18:48:13 +08:00
67 lines
4.8 KiB
JSON
67 lines
4.8 KiB
JSON
{
|
|
"data": {
|
|
"question": {
|
|
"questionId": "2014",
|
|
"questionFrontendId": "1867",
|
|
"boundTopicId": null,
|
|
"title": "Orders With Maximum Quantity Above Average",
|
|
"titleSlug": "orders-with-maximum-quantity-above-average",
|
|
"content": null,
|
|
"translatedTitle": null,
|
|
"translatedContent": null,
|
|
"isPaidOnly": true,
|
|
"difficulty": "Medium",
|
|
"likes": 71,
|
|
"dislikes": 256,
|
|
"isLiked": null,
|
|
"similarQuestions": "[]",
|
|
"exampleTestcases": "{\"headers\": {\"OrdersDetails\": [\"order_id\", \"product_id\", \"quantity\"]}, \"rows\": {\"OrdersDetails\": [[1 ,1, 12], [1 ,2, 10], [1 ,3, 15], [2 ,1, 8], [2 ,4, 4], [2 ,5, 6], [3 , 3, 5], [3 ,4, 18], [4 ,5, 2], [4 ,6, 8], [5 ,7, 9], [5 ,8, 9], [3 ,9, 20], [2 ,9, 4]]}}",
|
|
"categoryTitle": "Database",
|
|
"contributors": [],
|
|
"topicTags": [
|
|
{
|
|
"name": "Database",
|
|
"slug": "database",
|
|
"translatedName": null,
|
|
"__typename": "TopicTagNode"
|
|
}
|
|
],
|
|
"companyTagStats": null,
|
|
"codeSnippets": null,
|
|
"stats": "{\"totalAccepted\": \"14.8K\", \"totalSubmission\": \"20.8K\", \"totalAcceptedRaw\": 14819, \"totalSubmissionRaw\": 20825, \"acRate\": \"71.2%\"}",
|
|
"hints": [],
|
|
"solution": null,
|
|
"status": null,
|
|
"sampleTestCase": "{\"headers\": {\"OrdersDetails\": [\"order_id\", \"product_id\", \"quantity\"]}, \"rows\": {\"OrdersDetails\": [[1 ,1, 12], [1 ,2, 10], [1 ,3, 15], [2 ,1, 8], [2 ,4, 4], [2 ,5, 6], [3 , 3, 5], [3 ,4, 18], [4 ,5, 2], [4 ,6, 8], [5 ,7, 9], [5 ,8, 9], [3 ,9, 20], [2 ,9, 4]]}}",
|
|
"metaData": "{\"mysql\": [\"Create table If Not Exists OrdersDetails (order_id int, product_id int, quantity int)\"], \"mssql\": [\"Create table OrdersDetails (order_id int, product_id int, quantity int)\"], \"oraclesql\": [\"Create table OrdersDetails (order_id int, product_id int, quantity int)\"], \"database\": true, \"name\": \"orders_above_average\", \"pythondata\": [\"OrdersDetails = pd.DataFrame([], columns=['order_id', 'product_id', 'quantity']).astype({'order_id':'Int64', 'product_id':'Int64', 'quantity':'Int64'})\"], \"postgresql\": [\"Create table If Not Exists OrdersDetails (order_id int, product_id int, quantity int)\"], \"database_schema\": {\"OrdersDetails\": {\"order_id\": \"INT\", \"product_id\": \"INT\", \"quantity\": \"INT\"}}}",
|
|
"judgerAvailable": true,
|
|
"judgeType": "large",
|
|
"mysqlSchemas": [
|
|
"Create table If Not Exists OrdersDetails (order_id int, product_id int, quantity int)",
|
|
"Truncate table OrdersDetails",
|
|
"insert into OrdersDetails (order_id, product_id, quantity) values ('1', '1', '12')",
|
|
"insert into OrdersDetails (order_id, product_id, quantity) values ('1', '2', '10')",
|
|
"insert into OrdersDetails (order_id, product_id, quantity) values ('1', '3', '15')",
|
|
"insert into OrdersDetails (order_id, product_id, quantity) values ('2', '1', '8')",
|
|
"insert into OrdersDetails (order_id, product_id, quantity) values ('2', '4', '4')",
|
|
"insert into OrdersDetails (order_id, product_id, quantity) values ('2', '5', '6')",
|
|
"insert into OrdersDetails (order_id, product_id, quantity) values ('3', '3', '5')",
|
|
"insert into OrdersDetails (order_id, product_id, quantity) values ('3', '4', '18')",
|
|
"insert into OrdersDetails (order_id, product_id, quantity) values ('4', '5', '2')",
|
|
"insert into OrdersDetails (order_id, product_id, quantity) values ('4', '6', '8')",
|
|
"insert into OrdersDetails (order_id, product_id, quantity) values ('5', '7', '9')",
|
|
"insert into OrdersDetails (order_id, product_id, quantity) values ('5', '8', '9')",
|
|
"insert into OrdersDetails (order_id, product_id, quantity) values ('3', '9', '20')",
|
|
"insert into OrdersDetails (order_id, product_id, quantity) values ('2', '9', '4')"
|
|
],
|
|
"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"
|
|
}
|
|
}
|
|
} |