1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-10 18:48:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode/originData/[no content]market-analysis-iii.json

69 lines
5.6 KiB
JSON
Raw Normal View History

2023-11-03 23:14:24 +08:00
{
"data": {
"question": {
"questionId": "3205",
"questionFrontendId": "2922",
"boundTopicId": null,
"title": "Market Analysis III",
"titleSlug": "market-analysis-iii",
"content": null,
"translatedTitle": null,
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
2023-12-09 18:42:21 +08:00
"likes": 9,
"dislikes": 2,
2023-11-03 23:14:24 +08:00
"isLiked": null,
"similarQuestions": "[]",
"exampleTestcases": "{\"headers\": {\"Users\": [\"seller_id\", \"join_date\", \"favorite_brand\"],\"Orders\":[\"order_id\",\"order_date\",\"item_id\",\"seller_id\"],\"Items\":[\"item_id\",\"item_brand\"]},\"rows\":{\"Users\":[[1,\"2019-01-01\",\"Lenovo\"],[2,\"2019-02-09\",\"Samsung\"],[3,\"2019-01-19\",\"LG\"]],\"Orders\":[[1,\"2019-08-01\",4,2],[2,\"2019-08-02\",2,3],[3,\"2019-08-03\",3,3],[4,\"2019-08-04\",1,2],[5,\"2019-08-04\",4,2]],\"Items\":[[1,\"Samsung\"],[2,\"Lenovo\"],[3,\"LG\"],[4,\"HP\"]]}}",
"categoryTitle": "Database",
"contributors": [],
2023-12-09 18:42:21 +08:00
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": null,
"__typename": "TopicTagNode"
}
],
2023-11-03 23:14:24 +08:00
"companyTagStats": null,
"codeSnippets": null,
2023-12-09 19:57:46 +08:00
"stats": "{\"totalAccepted\": \"387\", \"totalSubmission\": \"904\", \"totalAcceptedRaw\": 387, \"totalSubmissionRaw\": 904, \"acRate\": \"42.8%\"}",
2023-11-03 23:14:24 +08:00
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\": {\"Users\": [\"seller_id\", \"join_date\", \"favorite_brand\"],\"Orders\":[\"order_id\",\"order_date\",\"item_id\",\"seller_id\"],\"Items\":[\"item_id\",\"item_brand\"]},\"rows\":{\"Users\":[[1,\"2019-01-01\",\"Lenovo\"],[2,\"2019-02-09\",\"Samsung\"],[3,\"2019-01-19\",\"LG\"]],\"Orders\":[[1,\"2019-08-01\",4,2],[2,\"2019-08-02\",2,3],[3,\"2019-08-03\",3,3],[4,\"2019-08-04\",1,2],[5,\"2019-08-04\",4,2]],\"Items\":[[1,\"Samsung\"],[2,\"Lenovo\"],[3,\"LG\"],[4,\"HP\"]]}}",
"metaData": "{\"mysql\": [\"Create table If Not Exists Users (seller_id int, join_date date, favorite_brand varchar(10))\", \"Create table If Not Exists Orders (order_id int, order_date date, item_id int, seller_id int)\", \"Create table If Not Exists Items (item_id int, item_brand varchar(10))\"], \"mssql\": [\"Create table Users (seller_id int, join_date date, favorite_brand varchar(10))\", \"Create table Orders (order_id int, order_date date, item_id int, seller_id int)\", \"Create table Items (item_id int, item_brand varchar(10))\"], \"oraclesql\": [\"Create table Users (seller_id int, join_date date, favorite_brand varchar(10))\", \"Create table Orders (order_id int, order_date date, item_id int, seller_id int)\", \"Create table Items (item_id int, item_brand varchar(10))\", \"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\"], \"database\": true, \"languages\": [\"mysql\", \"mssql\", \"oraclesql\"], \"database_schema\": {\"Users\": {\"seller_id\": \"INT\", \"join_date\": \"DATE\", \"favorite_brand\": \"VARCHAR(10)\"}, \"Orders\": {\"order_id\": \"INT\", \"order_date\": \"DATE\", \"item_id\": \"INT\", \"seller_id\": \"INT\"}, \"Items\": {\"item_id\": \"INT\", \"item_brand\": \"VARCHAR(10)\"}}}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Users (seller_id int, join_date date, favorite_brand varchar(10))",
"Create table If Not Exists Orders (order_id int, order_date date, item_id int, seller_id int)",
"Create table If Not Exists Items (item_id int, item_brand varchar(10))",
"Truncate table Users",
"insert into Users (seller_id, join_date, favorite_brand) values ('1', '2019-01-01', 'Lenovo')",
"insert into Users (seller_id, join_date, favorite_brand) values ('2', '2019-02-09', 'Samsung')",
"insert into Users (seller_id, join_date, favorite_brand) values ('3', '2019-01-19', 'LG')",
"Truncate table Orders",
"insert into Orders (order_id, order_date, item_id, seller_id) values ('1', '2019-08-01', '4', '2')",
"insert into Orders (order_id, order_date, item_id, seller_id) values ('2', '2019-08-02', '2', '3')",
"insert into Orders (order_id, order_date, item_id, seller_id) values ('3', '2019-08-03', '3', '3')",
"insert into Orders (order_id, order_date, item_id, seller_id) values ('4', '2019-08-04', '1', '2')",
"insert into Orders (order_id, order_date, item_id, seller_id) values ('5', '2019-08-04', '4', '2')",
"Truncate table Items",
"insert into Items (item_id, item_brand) values ('1', 'Samsung')",
"insert into Items (item_id, item_brand) values ('2', 'Lenovo')",
"insert into Items (item_id, item_brand) values ('3', 'LG')",
"insert into Items (item_id, item_brand) values ('4', 'HP')"
],
"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"
}
}
}