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
2022-05-02 23:44:12 +08:00

68 lines
4.7 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": 164,
"dislikes": 8,
"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\": \"27.8K\", \"totalSubmission\": \"35.3K\", \"totalAcceptedRaw\": 27756, \"totalSubmissionRaw\": 35312, \"acRate\": \"78.6%\"}",
"hints": [],
"solution": null,
"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": "{\n \"mysql\": [\n \"Create 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))\"\n ],\n \"mssql\": [\n \"Create table Customers (customer_id int, customer_name varchar(30))\",\n \"Create table Orders (order_id int, customer_id int, product_name varchar(30))\"\n ],\n \"oraclesql\": [\n \"Create table Customers (customer_id int, customer_name varchar(30))\",\n \"Create table Orders (order_id int, customer_id int, product_name varchar(30))\"\n ],\n \"database\": true\n}",
"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>\"]}",
"libraryUrl": null,
"adminUrl": null,
"challengeQuestion": null,
"__typename": "QuestionNode"
}
}
}