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]calculate-the-influence-of-each-salesperson.json
2023-12-09 19:57:46 +08:00

67 lines
5.6 KiB
JSON

{
"data": {
"question": {
"questionId": "2515",
"questionFrontendId": "2372",
"boundTopicId": null,
"title": "Calculate the Influence of Each Salesperson",
"titleSlug": "calculate-the-influence-of-each-salesperson",
"content": null,
"translatedTitle": null,
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 33,
"dislikes": 4,
"isLiked": null,
"similarQuestions": "[]",
"exampleTestcases": "{\"headers\":{\"Salesperson\":[\"salesperson_id\",\"name\"],\"Customer\":[\"customer_id\",\"salesperson_id\"],\"Sales\":[\"sale_id\",\"customer_id\",\"price\"]},\"rows\":{\"Salesperson\":[[1,\"Alice\"],[2,\"Bob\"],[3,\"Jerry\"]],\"Customer\":[[1,1],[2,1],[3,2]],\"Sales\":[[1,2,892],[2,1,354],[3,3,988],[4,3,856]]}}",
"categoryTitle": "Database",
"contributors": [],
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": null,
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"4K\", \"totalSubmission\": \"4.8K\", \"totalAcceptedRaw\": 3985, \"totalSubmissionRaw\": 4847, \"acRate\": \"82.2%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Salesperson\":[\"salesperson_id\",\"name\"],\"Customer\":[\"customer_id\",\"salesperson_id\"],\"Sales\":[\"sale_id\",\"customer_id\",\"price\"]},\"rows\":{\"Salesperson\":[[1,\"Alice\"],[2,\"Bob\"],[3,\"Jerry\"]],\"Customer\":[[1,1],[2,1],[3,2]],\"Sales\":[[1,2,892],[2,1,354],[3,3,988],[4,3,856]]}}",
"metaData": "{\"mysql\": [\"Create table If Not Exists Salesperson (salesperson_id int, name varchar(30))\", \"Create table If Not Exists Customer (customer_id int, salesperson_id int)\", \"Create table If Not Exists Sales (sale_id int, customer_id int, price int)\"], \"mssql\": [\"Create table Salesperson (salesperson_id int, name varchar(30))\", \"Create table Customer (customer_id int, salesperson_id int)\", \"Create table Sales (sale_id int, customer_id int, price int)\"], \"oraclesql\": [\"Create table Salesperson (salesperson_id int, name varchar(30))\", \"Create table Customer (customer_id int, salesperson_id int)\", \"Create table Sales (sale_id int, customer_id int, price int)\"], \"database\": true, \"name\": \"calculate_influence\", \"pythondata\": [\"Salesperson = pd.DataFrame([], columns=['salesperson_id', 'name']).astype({'salesperson_id':'Int64', 'name':'object'})\", \"Customer = pd.DataFrame([], columns=['customer_id', 'salesperson_id']).astype({'customer_id':'Int64', 'salesperson_id':'Int64'})\", \"Sales = pd.DataFrame([], columns=['sale_id', 'customer_id', 'price']).astype({'sale_id':'Int64', 'customer_id':'Int64', 'price':'Int64'})\"], \"postgresql\": [\"Create table If Not Exists Salesperson (salesperson_id int, name varchar(30))\", \"Create table If Not Exists Customer (customer_id int, salesperson_id int)\", \"Create table If Not Exists Sales (sale_id int, customer_id int, price int)\"], \"database_schema\": {\"Salesperson\": {\"salesperson_id\": \"INT\", \"name\": \"VARCHAR(30)\"}, \"Customer\": {\"customer_id\": \"INT\", \"salesperson_id\": \"INT\"}, \"Sales\": {\"sale_id\": \"INT\", \"customer_id\": \"INT\", \"price\": \"INT\"}}}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Salesperson (salesperson_id int, name varchar(30))",
"Create table If Not Exists Customer (customer_id int, salesperson_id int)",
"Create table If Not Exists Sales (sale_id int, customer_id int, price int)",
"Truncate table Salesperson",
"insert into Salesperson (salesperson_id, name) values ('1', 'Alice')",
"insert into Salesperson (salesperson_id, name) values ('2', 'Bob')",
"insert into Salesperson (salesperson_id, name) values ('3', 'Jerry')",
"Truncate table Customer",
"insert into Customer (customer_id, salesperson_id) values ('1', '1')",
"insert into Customer (customer_id, salesperson_id) values ('2', '1')",
"insert into Customer (customer_id, salesperson_id) values ('3', '2')",
"Truncate table Sales",
"insert into Sales (sale_id, customer_id, price) values ('1', '2', '892')",
"insert into Sales (sale_id, customer_id, price) values ('2', '1', '354')",
"insert into Sales (sale_id, customer_id, price) values ('3', '3', '988')",
"insert into Sales (sale_id, customer_id, price) values ('4', '3', '856')"
],
"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"
}
}
}