1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-13 19:31:42 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

add leetcode problem-cn part1

This commit is contained in:
2022-03-27 20:37:52 +08:00
parent 8e542045d1
commit c554fc6908
1285 changed files with 108123 additions and 0 deletions

View File

@@ -0,0 +1,71 @@
{
"data": {
"question": {
"questionId": "1481",
"questionFrontendId": "1350",
"categoryTitle": "Database",
"boundTopicId": 94504,
"title": "Students With Invalid Departments",
"titleSlug": "students-with-invalid-departments",
"content": null,
"translatedTitle": "院系无效的学生",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
"likes": 27,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"10K\", \"totalSubmission\": \"11.8K\", \"totalAcceptedRaw\": 10047, \"totalSubmissionRaw\": 11825, \"acRate\": \"85.0%\"}",
"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]]}}",
"metaData": "{\n \"mysql\": [\n \"Create 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)\"\n ],\n \"mssql\": [\n \"Create table Departments (id int, name varchar(30))\",\n \"Create table Students (id int, name varchar(30), department_id int)\"\n ],\n \"oraclesql\": [\n \"Create table Departments (id int, name varchar(30))\",\n \"Create table Students (id int, name varchar(30), department_id int)\"\n ],\n \"database\": true\n}",
"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,
"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>\"]}",
"book": null,
"isSubscribed": false,
"isDailyQuestion": false,
"dailyRecordStatus": null,
"editorType": "CKEDITOR",
"ugcQuestionId": null,
"style": "LEETCODE",
"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]]}}",
"__typename": "QuestionNode"
}
}
}