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-cn/originData/[no content]employees-project-allocation.json

59 lines
4.8 KiB
JSON
Raw Normal View History

2024-03-01 00:47:37 +08:00
{
"data": {
"question": {
"questionId": "3357",
"questionFrontendId": "100252",
"categoryTitle": "Database",
"boundTopicId": 2653974,
"title": "Employees Project Allocation",
"titleSlug": "employees-project-allocation",
"content": null,
"translatedTitle": null,
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Hard",
"likes": 0,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"8\", \"totalSubmission\": \"14\", \"totalAcceptedRaw\": 8, \"totalSubmissionRaw\": 14, \"acRate\": \"57.1%\"}",
"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,
"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\":{\"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\"]]}}",
"__typename": "QuestionNode"
}
}
}