mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-10 18:48:13 +08:00
61 lines
4.3 KiB
JSON
61 lines
4.3 KiB
JSON
{
|
|
"data": {
|
|
"question": {
|
|
"questionId": "1405",
|
|
"questionFrontendId": "1270",
|
|
"boundTopicId": null,
|
|
"title": "All People Report to the Given Manager",
|
|
"titleSlug": "all-people-report-to-the-given-manager",
|
|
"content": null,
|
|
"translatedTitle": null,
|
|
"translatedContent": null,
|
|
"isPaidOnly": true,
|
|
"difficulty": "Medium",
|
|
"likes": 407,
|
|
"dislikes": 26,
|
|
"isLiked": null,
|
|
"similarQuestions": "[]",
|
|
"exampleTestcases": "{\"headers\":{\"Employees\":[\"employee_id\",\"employee_name\",\"manager_id\"]},\"rows\":{\"Employees\":[[1,\"Boss\",1],[3,\"Alice\",3],[2,\"Bob\",1],[4,\"Daniel\",2],[7,\"Luis\",4],[8,\"John\",3],[9,\"Angela\",8],[77,\"Robert\",1]]}}",
|
|
"categoryTitle": "Database",
|
|
"contributors": [],
|
|
"topicTags": [
|
|
{
|
|
"name": "Database",
|
|
"slug": "database",
|
|
"translatedName": null,
|
|
"__typename": "TopicTagNode"
|
|
}
|
|
],
|
|
"companyTagStats": null,
|
|
"codeSnippets": null,
|
|
"stats": "{\"totalAccepted\": \"50.9K\", \"totalSubmission\": \"59.5K\", \"totalAcceptedRaw\": 50887, \"totalSubmissionRaw\": 59532, \"acRate\": \"85.5%\"}",
|
|
"hints": [],
|
|
"solution": null,
|
|
"status": null,
|
|
"sampleTestCase": "{\"headers\":{\"Employees\":[\"employee_id\",\"employee_name\",\"manager_id\"]},\"rows\":{\"Employees\":[[1,\"Boss\",1],[3,\"Alice\",3],[2,\"Bob\",1],[4,\"Daniel\",2],[7,\"Luis\",4],[8,\"John\",3],[9,\"Angela\",8],[77,\"Robert\",1]]}}",
|
|
"metaData": "{\"mysql\": [\"Create table If Not Exists Employees (employee_id int, employee_name varchar(30), manager_id int)\"], \"mssql\": [\"Create table Employees (employee_id int, employee_name varchar(30), manager_id int)\"], \"oraclesql\": [\"Create table Employees (employee_id int, employee_name varchar(30), manager_id int)\"], \"database\": true, \"name\": \"find_reporting_people\", \"pythondata\": [\"Employees = pd.DataFrame([], columns=['employee_id', 'employee_name', 'manager_id']).astype({'employee_id':'Int64', 'employee_name':'object', 'manager_id':'Int64'})\"], \"postgresql\": [\"\\nCreate table If Not Exists Employees (employee_id int, employee_name varchar(30), manager_id int)\"], \"database_schema\": {\"Employees\": {\"employee_id\": \"INT\", \"employee_name\": \"VARCHAR(30)\", \"manager_id\": \"INT\"}}}",
|
|
"judgerAvailable": true,
|
|
"judgeType": "large",
|
|
"mysqlSchemas": [
|
|
"Create table If Not Exists Employees (employee_id int, employee_name varchar(30), manager_id int)",
|
|
"Truncate table Employees",
|
|
"insert into Employees (employee_id, employee_name, manager_id) values ('1', 'Boss', '1')",
|
|
"insert into Employees (employee_id, employee_name, manager_id) values ('3', 'Alice', '3')",
|
|
"insert into Employees (employee_id, employee_name, manager_id) values ('2', 'Bob', '1')",
|
|
"insert into Employees (employee_id, employee_name, manager_id) values ('4', 'Daniel', '2')",
|
|
"insert into Employees (employee_id, employee_name, manager_id) values ('7', 'Luis', '4')",
|
|
"insert into Employees (employee_id, employee_name, manager_id) values ('8', 'John', '3')",
|
|
"insert into Employees (employee_id, employee_name, manager_id) values ('9', 'Angela', '8')",
|
|
"insert into Employees (employee_id, employee_name, manager_id) values ('77', 'Robert', '1')"
|
|
],
|
|
"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"
|
|
}
|
|
}
|
|
} |