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/originData/[no content]number-of-trusted-contacts-of-a-customer.json
2022-03-29 12:55:24 +08:00

73 lines
6.3 KiB
JSON

{
"data": {
"question": {
"questionId": "1495",
"questionFrontendId": "1364",
"boundTopicId": null,
"title": "Number of Trusted Contacts of a Customer",
"titleSlug": "number-of-trusted-contacts-of-a-customer",
"content": null,
"translatedTitle": null,
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 52,
"dislikes": 270,
"isLiked": null,
"similarQuestions": "[]",
"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]]}}",
"categoryTitle": "Database",
"contributors": [],
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": null,
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"12.6K\", \"totalSubmission\": \"16K\", \"totalAcceptedRaw\": 12619, \"totalSubmissionRaw\": 16031, \"acRate\": \"78.7%\"}",
"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,
"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"
}
}
}