1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-11 02:58:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/originData/[no content]number-of-trusted-contacts-of-a-customer.json
2022-05-02 23:44:12 +08:00

76 lines
6.4 KiB
JSON

{
"data": {
"question": {
"questionId": "1495",
"questionFrontendId": "1364",
"categoryTitle": "Database",
"boundTopicId": 111951,
"title": "Number of Trusted Contacts of a Customer",
"titleSlug": "number-of-trusted-contacts-of-a-customer",
"content": null,
"translatedTitle": "顾客的可信联系人数量",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 14,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"4.5K\", \"totalSubmission\": \"6.6K\", \"totalAcceptedRaw\": 4543, \"totalSubmissionRaw\": 6623, \"acRate\": \"68.6%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Customers\":[\"customer_id\",\"customer_name\",\"email\"],\"Contacts\":[\"user_id\",\"contact_name\",\"contact_email\"],\"Invoices\":[\"invoice_id\",\"price\",\"user_id\"]},\"rows\":{\"Customers\":[[1,\"Alice\",\"alice@leetcode.com\"],[2,\"Bob\",\"bob@leetcode.com\"],[13,\"John\",\"john@leetcode.com\"],[6,\"Alex\",\"alex@leetcode.com\"]],\"Contacts\":[[1,\"Bob\",\"bob@leetcode.com\"],[1,\"John\",\"john@leetcode.com\"],[1,\"Jal\",\"jal@leetcode.com\"],[2,\"Omar\",\"omar@leetcode.com\"],[2,\"Meir\",\"meir@leetcode.com\"],[6,\"Alice\",\"alice@leetcode.com\"]],\"Invoices\":[[77,100,1],[88,200,1],[99,300,2],[66,400,2],[55,500,13],[44,60,6]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Customers (customer_id int, customer_name varchar(20), email varchar(30))\",\n \"Create table If Not Exists Contacts (user_id int, contact_name varchar(20), contact_email varchar(30))\",\n \"Create table If Not Exists Invoices (invoice_id int, price int, user_id int)\"\n ],\n \"mssql\": [\n \"Create table Customers (customer_id int, customer_name varchar(20), email varchar(30))\",\n \"Create table Contacts (user_id int, contact_name varchar(20), contact_email varchar(30))\",\n \"Create table Invoices (invoice_id int, price int, user_id int)\"\n ],\n \"oraclesql\": [\n \"Create table Customers (customer_id int, customer_name varchar(20), email varchar(30))\",\n \"Create table Contacts (user_id int, contact_name varchar(20), contact_email varchar(30))\",\n \"Create table Invoices (invoice_id int, price int, user_id int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Customers (customer_id int, customer_name varchar(20), email varchar(30))",
"Create table If Not Exists Contacts (user_id int, contact_name varchar(20), contact_email varchar(30))",
"Create table If Not Exists Invoices (invoice_id int, price int, user_id int)",
"Truncate table Customers",
"insert into Customers (customer_id, customer_name, email) values ('1', 'Alice', 'alice@leetcode.com')",
"insert into Customers (customer_id, customer_name, email) values ('2', 'Bob', 'bob@leetcode.com')",
"insert into Customers (customer_id, customer_name, email) values ('13', 'John', 'john@leetcode.com')",
"insert into Customers (customer_id, customer_name, email) values ('6', 'Alex', 'alex@leetcode.com')",
"Truncate table Contacts",
"insert into Contacts (user_id, contact_name, contact_email) values ('1', 'Bob', 'bob@leetcode.com')",
"insert into Contacts (user_id, contact_name, contact_email) values ('1', 'John', 'john@leetcode.com')",
"insert into Contacts (user_id, contact_name, contact_email) values ('1', 'Jal', 'jal@leetcode.com')",
"insert into Contacts (user_id, contact_name, contact_email) values ('2', 'Omar', 'omar@leetcode.com')",
"insert into Contacts (user_id, contact_name, contact_email) values ('2', 'Meir', 'meir@leetcode.com')",
"insert into Contacts (user_id, contact_name, contact_email) values ('6', 'Alice', 'alice@leetcode.com')",
"Truncate table Invoices",
"insert into Invoices (invoice_id, price, user_id) values ('77', '100', '1')",
"insert into Invoices (invoice_id, price, user_id) values ('88', '200', '1')",
"insert into Invoices (invoice_id, price, user_id) values ('99', '300', '2')",
"insert into Invoices (invoice_id, price, user_id) values ('66', '400', '2')",
"insert into Invoices (invoice_id, price, user_id) values ('55', '500', '13')",
"insert into Invoices (invoice_id, price, user_id) values ('44', '60', '6')"
],
"enableRunCode": true,
"envInfo": "{\"mysql\":[\"MySQL\",\"<p>\\u7248\\u672c\\uff1a<code>MySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"<p>mssql server 2019.<\\/p>\"],\"oraclesql\":[\"Oracle\",\"<p>Oracle Sql 11.2.<\\/p>\"]}",
"book": null,
"isSubscribed": false,
"isDailyQuestion": false,
"dailyRecordStatus": null,
"editorType": "CKEDITOR",
"ugcQuestionId": null,
"style": "LEETCODE",
"exampleTestcases": "{\"headers\":{\"Customers\":[\"customer_id\",\"customer_name\",\"email\"],\"Contacts\":[\"user_id\",\"contact_name\",\"contact_email\"],\"Invoices\":[\"invoice_id\",\"price\",\"user_id\"]},\"rows\":{\"Customers\":[[1,\"Alice\",\"alice@leetcode.com\"],[2,\"Bob\",\"bob@leetcode.com\"],[13,\"John\",\"john@leetcode.com\"],[6,\"Alex\",\"alex@leetcode.com\"]],\"Contacts\":[[1,\"Bob\",\"bob@leetcode.com\"],[1,\"John\",\"john@leetcode.com\"],[1,\"Jal\",\"jal@leetcode.com\"],[2,\"Omar\",\"omar@leetcode.com\"],[2,\"Meir\",\"meir@leetcode.com\"],[6,\"Alice\",\"alice@leetcode.com\"]],\"Invoices\":[[77,100,1],[88,200,1],[99,300,2],[66,400,2],[55,500,13],[44,60,6]]}}",
"__typename": "QuestionNode"
}
}
}