1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-25 17:50:26 +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
2023-12-09 19:57:46 +08:00

76 lines
7.6 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": 22,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"6.5K\", \"totalSubmission\": \"9.6K\", \"totalAcceptedRaw\": 6543, \"totalSubmissionRaw\": 9570, \"acRate\": \"68.4%\"}",
"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": "{\"mysql\":[\"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)\"],\"mssql\":[\"Create table Customers (customer_id int, customer_name varchar(20), email varchar(30))\",\"Create table Contacts (user_id int, contact_name varchar(20), contact_email varchar(30))\",\"Create table Invoices (invoice_id int, price int, user_id int)\"],\"oraclesql\":[\"Create table Customers (customer_id int, customer_name varchar(20), email varchar(30))\",\"Create table Contacts (user_id int, contact_name varchar(20), contact_email varchar(30))\",\"Create table Invoices (invoice_id int, price int, user_id int)\"],\"database\":true,\"name\":\"count_trusted_contacts\",\"pythondata\":[\"Customers = pd.DataFrame([], columns=['customer_id', 'customer_name', 'email']).astype({'customer_id':'Int64', 'customer_name':'object', 'email':'object'})\",\"Contacts = pd.DataFrame([], columns=['user_id', 'contact_name', 'contact_email']).astype({'user_id':'Int64', 'contact_name':'object', 'contact_email':'object'})\",\"Invoices = pd.DataFrame([], columns=['invoice_id', 'price', 'user_id']).astype({'invoice_id':'Int64', 'price':'Int64', 'user_id':'Int64'})\"],\"postgresql\":[\"\\nCreate 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)\"],\"database_schema\":{\"Customers\":{\"customer_id\":\"INT\",\"customer_name\":\"VARCHAR(20)\",\"email\":\"VARCHAR(30)\"},\"Contacts\":{\"user_id\":\"INT\",\"contact_name\":\"VARCHAR(20)\",\"contact_email\":\"VARCHAR(30)\"},\"Invoices\":{\"invoice_id\":\"INT\",\"price\":\"INT\",\"user_id\":\"INT\"}}}",
"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>\"],\"pythondata\":[\"Pandas\",\"<p>Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0<\\/p>\"],\"postgresql\":[\"PostgreSQL\",\"<p>PostgreSQL 16<\\/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"
}
}
}