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]employees-project-allocation.json
2024-03-01 00:47:37 +08:00

56 lines
4.7 KiB
JSON

{
"data": {
"question": {
"questionId": "3357",
"questionFrontendId": "3057",
"boundTopicId": null,
"title": "Employees Project Allocation",
"titleSlug": "employees-project-allocation",
"content": null,
"translatedTitle": null,
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Hard",
"likes": 2,
"dislikes": 1,
"isLiked": null,
"similarQuestions": "[]",
"exampleTestcases": "{\"headers\":{\"Project\":[\"project_id\",\"employee_id\",\"workload\"],\"Employees\":[\"employee_id\",\"name\",\"team\"]},\"rows\":{\"Project\":[[1,1,45],[1,2,90],[2,3,12],[2,4,68]],\"Employees\":[[1,\"Khaled\",\"A\"],[2,\"Ali\",\"B\"],[3,\"John\",\"B\"],[4,\"Doe\",\"A\"]]}}",
"categoryTitle": "Database",
"contributors": [],
"topicTags": [],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"131\", \"totalSubmission\": \"165\", \"totalAcceptedRaw\": 131, \"totalSubmissionRaw\": 165, \"acRate\": \"79.4%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Project\":[\"project_id\",\"employee_id\",\"workload\"],\"Employees\":[\"employee_id\",\"name\",\"team\"]},\"rows\":{\"Project\":[[1,1,45],[1,2,90],[2,3,12],[2,4,68]],\"Employees\":[[1,\"Khaled\",\"A\"],[2,\"Ali\",\"B\"],[3,\"John\",\"B\"],[4,\"Doe\",\"A\"]]}}",
"metaData": "{\"mysql\": [\"Create table If Not Exists Project (project_id int, employee_id int, workload int)\", \"Create table If Not Exists Employees (employee_id int, name varchar(20), team varchar(20))\"], \"mssql\": [\"Create table Project (project_id int, employee_id int, workload int)\", \"Create table Employees (employee_id int, name varchar(20), team varchar(20))\"], \"oraclesql\": [\"Create table Project (project_id int, employee_id int, workload int)\", \"Create table Employees (employee_id int, name varchar(20), team varchar(20))\"], \"database\": true, \"name\": \"employees_with_above_avg_workload\", \"pythondata\": [\"Project = pd.DataFrame([], columns=['project_id', 'employee_id', 'workload']).astype({'project_id':'Int64', 'employee_id':'Int64', 'workload':'Int64'})\\n\", \"Employees = pd.DataFrame([], columns=['employee_id', 'name', 'team']).astype({'employee_id':'Int64', 'name':'object', 'team':'object'})\"], \"postgresql\": [\"CREATE TABLE Project (\\n project_id int,\\n employee_id int,\\n workload int\\n);\", \"CREATE TABLE Employees (\\n employee_id int,\\n name varchar(20),\\n team varchar(20)\\n);\"], \"database_schema\": {\"Project\": {\"project_id\": \"INT\", \"employee_id\": \"INT\", \"workload\": \"INT\"}, \"Employees\": {\"employee_id\": \"INT\", \"name\": \"VARCHAR(20)\", \"team\": \"VARCHAR(20)\"}}}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Project (project_id int, employee_id int, workload int)",
"Create table If Not Exists Employees (employee_id int, name varchar(20), team varchar(20))",
"Truncate table Project",
"insert into Project (project_id, employee_id, workload) values ('1', '1', '45')",
"insert into Project (project_id, employee_id, workload) values ('1', '2', '90')",
"insert into Project (project_id, employee_id, workload) values ('2', '3', '12')",
"insert into Project (project_id, employee_id, workload) values ('2', '4', '68')",
"Truncate table Employees",
"insert into Employees (employee_id, name, team) values ('1', 'Khaled', 'A')",
"insert into Employees (employee_id, name, team) values ('2', 'Ali', 'B')",
"insert into Employees (employee_id, name, team) values ('3', 'John', 'B')",
"insert into Employees (employee_id, name, team) values ('4', 'Doe', 'A')"
],
"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"
}
}
}