mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-13 19:31:42 +08:00
add leetcode problem-cn part3
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "570",
|
||||
"questionFrontendId": "570",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 2652,
|
||||
"title": "Managers with at Least 5 Direct Reports",
|
||||
"titleSlug": "managers-with-at-least-5-direct-reports",
|
||||
"content": null,
|
||||
"translatedTitle": "至少有5名直接下属的经理",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Medium",
|
||||
"likes": 33,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": "数据库",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"17.5K\", \"totalSubmission\": \"26.7K\", \"totalAcceptedRaw\": 17472, \"totalSubmissionRaw\": 26696, \"acRate\": \"65.4%\"}",
|
||||
"hints": [
|
||||
"Try to get all the mangerIDs that have count bigger than 5",
|
||||
"Use the last hint's result as a table and do join with origin table at id equals to managerId",
|
||||
"This is a very good example to show the performance of SQL code. Try to work out other solutions and you may be surprised by running time difference.",
|
||||
"If your solution uses 'IN' function and runs more than 5 seconds, try to optimize it by using 'JOIN' instead."
|
||||
],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\": {\"Employee\": [\"id\", \"name\", \"department\", \"managerId\"]}, \"rows\": {\"Employee\": [[101, \"John\", \"A\", null],[102, \"Dan\", \"A\", 101], [103, \"James\", \"A\", 101], [104, \"Amy\", \"A\", 101], [105, \"Anne\", \"A\", 101], [106, \"Ron\", \"B\", 101]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Employee (id int, name varchar(255), department varchar(255), managerId int)\"\n ],\n \"mssql\": [\n \"Create table Employee (id int, name varchar(255), department varchar(255), managerId int)\"\n ],\n \"oraclesql\": [\n \"Create table Employee (id int, name varchar(255), department varchar(255), managerId int)\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Employee (id int, name varchar(255), department varchar(255), managerId int)",
|
||||
"Truncate table Employee",
|
||||
"insert into Employee (id, name, department, managerId) values ('101', 'John', 'A', 'None')",
|
||||
"insert into Employee (id, name, department, managerId) values ('102', 'Dan', 'A', '101')",
|
||||
"insert into Employee (id, name, department, managerId) values ('103', 'James', 'A', '101')",
|
||||
"insert into Employee (id, name, department, managerId) values ('104', 'Amy', 'A', '101')",
|
||||
"insert into Employee (id, name, department, managerId) values ('105', 'Anne', 'A', '101')",
|
||||
"insert into Employee (id, name, department, managerId) values ('106', 'Ron', 'B', '101')"
|
||||
],
|
||||
"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\": {\"Employee\": [\"id\", \"name\", \"department\", \"managerId\"]}, \"rows\": {\"Employee\": [[101, \"John\", \"A\", null],[102, \"Dan\", \"A\", 101], [103, \"James\", \"A\", 101], [104, \"Amy\", \"A\", 101], [105, \"Anne\", \"A\", 101], [106, \"Ron\", \"B\", 101]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user