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]students-with-invalid-departments.json

68 lines
5.4 KiB
JSON
Raw Normal View History

2022-03-27 18:27:43 +08:00
{
"data": {
"question": {
"questionId": "1481",
"questionFrontendId": "1350",
"boundTopicId": null,
"title": "Students With Invalid Departments",
"titleSlug": "students-with-invalid-departments",
"content": null,
"translatedTitle": null,
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
2023-12-09 18:42:21 +08:00
"likes": 172,
"dislikes": 9,
2022-03-27 18:27:43 +08:00
"isLiked": null,
"similarQuestions": "[]",
"exampleTestcases": "{\"headers\":{\"Departments\":[\"id\",\"name\"],\"Students\":[\"id\",\"name\",\"department_id\"]},\"rows\":{\"Departments\":[[1,\"Electrical Engineering\"],[7,\"Computer Engineering\"],[13,\"Bussiness Administration\"]],\"Students\":[[23,\"Alice\",1],[1,\"Bob\",7],[5,\"Jennifer\",13],[2,\"John\",14],[4,\"Jasmine\",77],[3,\"Steve\",74],[6,\"Luis\",1],[8,\"Jonathan\",7],[7,\"Daiana\",33],[11,\"Madelynn\",1]]}}",
"categoryTitle": "Database",
"contributors": [],
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": null,
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
2023-12-09 18:42:21 +08:00
"stats": "{\"totalAccepted\": \"51.9K\", \"totalSubmission\": \"58K\", \"totalAcceptedRaw\": 51934, \"totalSubmissionRaw\": 57968, \"acRate\": \"89.6%\"}",
2022-03-27 18:27:43 +08:00
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Departments\":[\"id\",\"name\"],\"Students\":[\"id\",\"name\",\"department_id\"]},\"rows\":{\"Departments\":[[1,\"Electrical Engineering\"],[7,\"Computer Engineering\"],[13,\"Bussiness Administration\"]],\"Students\":[[23,\"Alice\",1],[1,\"Bob\",7],[5,\"Jennifer\",13],[2,\"John\",14],[4,\"Jasmine\",77],[3,\"Steve\",74],[6,\"Luis\",1],[8,\"Jonathan\",7],[7,\"Daiana\",33],[11,\"Madelynn\",1]]}}",
2023-12-09 18:42:21 +08:00
"metaData": "{\"mysql\": [\"Create table If Not Exists Departments (id int, name varchar(30))\", \"Create table If Not Exists Students (id int, name varchar(30), department_id int)\"], \"mssql\": [\"Create table Departments (id int, name varchar(30))\", \"Create table Students (id int, name varchar(30), department_id int)\"], \"oraclesql\": [\"Create table Departments (id int, name varchar(30))\", \"Create table Students (id int, name varchar(30), department_id int)\"], \"database\": true, \"name\": \"find_students\", \"pythondata\": [\"Departments = pd.DataFrame([], columns=['id', 'name']).astype({'id':'Int64', 'name':'object'})\", \"Students = pd.DataFrame([], columns=['id', 'name', 'department_id']).astype({'id':'Int64', 'name':'object', 'department_id':'Int64'})\"], \"postgresql\": [\"\\nCreate table If Not Exists Departments (id int, name varchar(30))\\n\", \"Create table If Not Exists Students (id int, name varchar(30), department_id int)\"], \"database_schema\": {\"Departments\": {\"id\": \"INT\", \"name\": \"VARCHAR(30)\"}, \"Students\": {\"id\": \"INT\", \"name\": \"VARCHAR(30)\", \"department_id\": \"INT\"}}}",
2022-03-27 18:27:43 +08:00
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Departments (id int, name varchar(30))",
"Create table If Not Exists Students (id int, name varchar(30), department_id int)",
"Truncate table Departments",
"insert into Departments (id, name) values ('1', 'Electrical Engineering')",
"insert into Departments (id, name) values ('7', 'Computer Engineering')",
"insert into Departments (id, name) values ('13', 'Bussiness Administration')",
"Truncate table Students",
"insert into Students (id, name, department_id) values ('23', 'Alice', '1')",
"insert into Students (id, name, department_id) values ('1', 'Bob', '7')",
"insert into Students (id, name, department_id) values ('5', 'Jennifer', '13')",
"insert into Students (id, name, department_id) values ('2', 'John', '14')",
"insert into Students (id, name, department_id) values ('4', 'Jasmine', '77')",
"insert into Students (id, name, department_id) values ('3', 'Steve', '74')",
"insert into Students (id, name, department_id) values ('6', 'Luis', '1')",
"insert into Students (id, name, department_id) values ('8', 'Jonathan', '7')",
"insert into Students (id, name, department_id) values ('7', 'Daiana', '33')",
"insert into Students (id, name, department_id) values ('11', 'Madelynn', '1')"
],
"enableRunCode": true,
"enableTestMode": false,
"enableDebugger": false,
2023-12-09 18:42:21 +08:00
"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>\"]}",
2022-03-27 18:27:43 +08:00
"libraryUrl": null,
"adminUrl": null,
"challengeQuestion": null,
"__typename": "QuestionNode"
}
}
}