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]customers-who-bought-products-a-and-b-but-not-c.json
2023-12-09 19:57:46 +08:00

75 lines
5.8 KiB
JSON

{
"data": {
"question": {
"questionId": "1536",
"questionFrontendId": "1398",
"boundTopicId": null,
"title": "Customers Who Bought Products A and B but Not C",
"titleSlug": "customers-who-bought-products-a-and-b-but-not-c",
"content": null,
"translatedTitle": null,
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 283,
"dislikes": 16,
"isLiked": null,
"similarQuestions": "[]",
"exampleTestcases": "{\"headers\":{\"Customers\":[\"customer_id\",\"customer_name\"],\"Orders\":[\"order_id\",\"customer_id\",\"product_name\"]},\"rows\":{\"Customers\":[[1,\"Daniel\"],[2,\"Diana\"],[3,\"Elizabeth\"],[4,\"Jhon\"]],\"Orders\":[[10,1,\"A\"],[20,1,\"B\"],[30,1,\"D\"],[40,1,\"C\"],[50,2,\"A\"],[60,3,\"A\"],[70,3,\"B\"],[80,3,\"D\"],[90,4,\"C\"]]}}",
"categoryTitle": "Database",
"contributors": [],
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": null,
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"46.1K\", \"totalSubmission\": \"62.6K\", \"totalAcceptedRaw\": 46083, \"totalSubmissionRaw\": 62607, \"acRate\": \"73.6%\"}",
"hints": [],
"solution": {
"id": "2058",
"canSeeDetail": false,
"paidOnly": true,
"hasVideoSolution": false,
"paidOnlyVideo": true,
"__typename": "ArticleNode"
},
"status": null,
"sampleTestCase": "{\"headers\":{\"Customers\":[\"customer_id\",\"customer_name\"],\"Orders\":[\"order_id\",\"customer_id\",\"product_name\"]},\"rows\":{\"Customers\":[[1,\"Daniel\"],[2,\"Diana\"],[3,\"Elizabeth\"],[4,\"Jhon\"]],\"Orders\":[[10,1,\"A\"],[20,1,\"B\"],[30,1,\"D\"],[40,1,\"C\"],[50,2,\"A\"],[60,3,\"A\"],[70,3,\"B\"],[80,3,\"D\"],[90,4,\"C\"]]}}",
"metaData": "{\"mysql\": [\"Create table If Not Exists Customers (customer_id int, customer_name varchar(30))\", \"Create table If Not Exists Orders (order_id int, customer_id int, product_name varchar(30))\"], \"mssql\": [\"Create table Customers (customer_id int, customer_name varchar(30))\", \"Create table Orders (order_id int, customer_id int, product_name varchar(30))\"], \"oraclesql\": [\"Create table Customers (customer_id int, customer_name varchar(30))\", \"Create table Orders (order_id int, customer_id int, product_name varchar(30))\"], \"database\": true, \"name\": \"find_customers\", \"pythondata\": [\"Customers = pd.DataFrame([], columns=['customer_id', 'customer_name']).astype({'customer_id':'Int64', 'customer_name':'object'})\", \"Orders = pd.DataFrame([], columns=['order_id', 'customer_id', 'product_name']).astype({'order_id':'Int64', 'customer_id':'Int64', 'product_name':'object'})\"], \"postgresql\": [\"\\nCreate table If Not Exists Customers (customer_id int, customer_name varchar(30))\\n\", \"Create table If Not Exists Orders (order_id int, customer_id int, product_name varchar(30))\"], \"database_schema\": {\"Customers\": {\"customer_id\": \"INT\", \"customer_name\": \"VARCHAR(30)\"}, \"Orders\": {\"order_id\": \"INT\", \"customer_id\": \"INT\", \"product_name\": \"VARCHAR(30)\"}}}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Customers (customer_id int, customer_name varchar(30))",
"Create table If Not Exists Orders (order_id int, customer_id int, product_name varchar(30))",
"Truncate table Customers",
"insert into Customers (customer_id, customer_name) values ('1', 'Daniel')",
"insert into Customers (customer_id, customer_name) values ('2', 'Diana')",
"insert into Customers (customer_id, customer_name) values ('3', 'Elizabeth')",
"insert into Customers (customer_id, customer_name) values ('4', 'Jhon')",
"Truncate table Orders",
"insert into Orders (order_id, customer_id, product_name) values ('10', '1', 'A')",
"insert into Orders (order_id, customer_id, product_name) values ('20', '1', 'B')",
"insert into Orders (order_id, customer_id, product_name) values ('30', '1', 'D')",
"insert into Orders (order_id, customer_id, product_name) values ('40', '1', 'C')",
"insert into Orders (order_id, customer_id, product_name) values ('50', '2', 'A')",
"insert into Orders (order_id, customer_id, product_name) values ('60', '3', 'A')",
"insert into Orders (order_id, customer_id, product_name) values ('70', '3', 'B')",
"insert into Orders (order_id, customer_id, product_name) values ('80', '3', 'D')",
"insert into Orders (order_id, customer_id, product_name) values ('90', '4', 'C')"
],
"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"
}
}
}