Skip to content

Commit e31313b

Browse files
committed
update
1 parent 5028bd7 commit e31313b

File tree

53 files changed

+19204
-14600
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+19204
-14600
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 力扣题库(完整版)
22

3-
> 最后更新日期: **2024.02.19**
3+
> 最后更新日期: **2024.03.01**
44
>
55
> 使用脚本前请务必仔细完整阅读本 `README.md` 文件
66

leetcode-cn/origin-data.json

+8,898-8,499
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"data": {
3+
"question": {
4+
"questionId": "3259",
5+
"questionFrontendId": "100177",
6+
"categoryTitle": "Database",
7+
"boundTopicId": 2653971,
8+
"title": "Binary Tree Nodes",
9+
"titleSlug": "binary-tree-nodes",
10+
"content": null,
11+
"translatedTitle": null,
12+
"translatedContent": null,
13+
"isPaidOnly": true,
14+
"difficulty": "Medium",
15+
"likes": 0,
16+
"dislikes": 0,
17+
"isLiked": null,
18+
"similarQuestions": "[]",
19+
"contributors": [],
20+
"langToValidPlayground": null,
21+
"topicTags": [],
22+
"companyTagStats": null,
23+
"codeSnippets": null,
24+
"stats": "{\"totalAccepted\": \"23\", \"totalSubmission\": \"30\", \"totalAcceptedRaw\": 23, \"totalSubmissionRaw\": 30, \"acRate\": \"76.7%\"}",
25+
"hints": [],
26+
"solution": null,
27+
"status": null,
28+
"sampleTestCase": "{\"headers\":{\"Tree\":[\"N\",\"P\"]},\"rows\":{\"Tree\":[[1,2],[3,2],[6,8],[9,8],[2,5],[8,5],[5,null]]}}",
29+
"metaData": "{\"mysql\":[\"Create table If Not Exists Tree (N int,P int)\"],\"mssql\":[\"Create table Tree (N int,P int)\"],\"oraclesql\":[\"Create table Tree (N int,P int)\"],\"database\":true,\"name\":\"binary_tree_nodes\",\"pythondata\":[\"Tree = pd.DataFrame([], columns=['N', 'P']).astype({'N':'Int64', 'P':'Int64'})\"],\"postgresql\":[\"Create table If Not Exists Tree (N int,P int)\\n\"],\"database_schema\":{\"Tree\":{\"N\":\"INT\",\"P\":\"INT\"}}}",
30+
"judgerAvailable": true,
31+
"judgeType": "large",
32+
"mysqlSchemas": [
33+
"Create table If Not Exists Tree (N int,P int)",
34+
"Truncate table Tree",
35+
"insert into Tree (N, P) values ('1', '2')",
36+
"insert into Tree (N, P) values ('3', '2')",
37+
"insert into Tree (N, P) values ('6', '8')",
38+
"insert into Tree (N, P) values ('9', '8')",
39+
"insert into Tree (N, P) values ('2', '5')",
40+
"insert into Tree (N, P) values ('8', '5')",
41+
"insert into Tree (N, P) values ('5', 'None')"
42+
],
43+
"enableRunCode": true,
44+
"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>\"]}",
45+
"book": null,
46+
"isSubscribed": false,
47+
"isDailyQuestion": false,
48+
"dailyRecordStatus": null,
49+
"editorType": "CKEDITOR",
50+
"ugcQuestionId": null,
51+
"style": "LEETCODE",
52+
"exampleTestcases": "{\"headers\":{\"Tree\":[\"N\",\"P\"]},\"rows\":{\"Tree\":[[1,2],[3,2],[6,8],[9,8],[2,5],[8,5],[5,null]]}}",
53+
"__typename": "QuestionNode"
54+
}
55+
}
56+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"data": {
3+
"question": {
4+
"questionId": "3369",
5+
"questionFrontendId": "3061",
6+
"categoryTitle": "Database",
7+
"boundTopicId": 2658813,
8+
"title": "Calculate Trapping Rain Water",
9+
"titleSlug": "calculate-trapping-rain-water",
10+
"content": null,
11+
"translatedTitle": null,
12+
"translatedContent": null,
13+
"isPaidOnly": true,
14+
"difficulty": "Hard",
15+
"likes": 0,
16+
"dislikes": 0,
17+
"isLiked": null,
18+
"similarQuestions": "[]",
19+
"contributors": [],
20+
"langToValidPlayground": null,
21+
"topicTags": [],
22+
"companyTagStats": null,
23+
"codeSnippets": null,
24+
"stats": "{\"totalAccepted\": \"8\", \"totalSubmission\": \"8\", \"totalAcceptedRaw\": 8, \"totalSubmissionRaw\": 8, \"acRate\": \"100.0%\"}",
25+
"hints": [],
26+
"solution": null,
27+
"status": null,
28+
"sampleTestCase": "{\"headers\":{\"Heights\":[\"id\",\"height\"]},\"rows\":{\"Heights\":[[1,0],[2,1],[3,0],[4,2],[5,1],[6,0],[7,1],[8,3],[9,2],[10,1],[11,2],[12,1]]}}",
29+
"metaData": "{\"mysql\":[\"Create Table if not Exists Heights(id int, height int)\"],\"mssql\":[\"Create Table Heights(id int,height int)\"],\"oraclesql\":[\"Create Table Heights(id int,height int)\"],\"database\":true,\"name\":\"calculate_trapped_rain_water\",\"postgresql\":[\"CREATE TABLE Heights(\\n id int,\\n height int\\n);\\n\"],\"pythondata\":[\"Heights = pd.DataFrame([], columns=['id', 'height']).astype({'id':'Int64', 'height':'Int64'})\\n\"],\"database_schema\":{\"Heights\":{\"id\":\"INT\",\"height\":\"INT\"}}}",
30+
"judgerAvailable": true,
31+
"judgeType": "large",
32+
"mysqlSchemas": [
33+
"Create Table if not Exists Heights(id int, height int)",
34+
"Truncate table Heights",
35+
"insert into Heights (id, height) values ('1', '0')",
36+
"insert into Heights (id, height) values ('2', '1')",
37+
"insert into Heights (id, height) values ('3', '0')",
38+
"insert into Heights (id, height) values ('4', '2')",
39+
"insert into Heights (id, height) values ('5', '1')",
40+
"insert into Heights (id, height) values ('6', '0')",
41+
"insert into Heights (id, height) values ('7', '1')",
42+
"insert into Heights (id, height) values ('8', '3')",
43+
"insert into Heights (id, height) values ('9', '2')",
44+
"insert into Heights (id, height) values ('10', '1')",
45+
"insert into Heights (id, height) values ('11', '2')",
46+
"insert into Heights (id, height) values ('12', '1')"
47+
],
48+
"enableRunCode": true,
49+
"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>\"]}",
50+
"book": null,
51+
"isSubscribed": false,
52+
"isDailyQuestion": false,
53+
"dailyRecordStatus": null,
54+
"editorType": "CKEDITOR",
55+
"ugcQuestionId": null,
56+
"style": "LEETCODE",
57+
"exampleTestcases": "{\"headers\":{\"Heights\":[\"id\",\"height\"]},\"rows\":{\"Heights\":[[1,0],[2,1],[3,0],[4,2],[5,1],[6,0],[7,1],[8,3],[9,2],[10,1],[11,2],[12,1]]}}",
58+
"__typename": "QuestionNode"
59+
}
60+
}
61+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"data": {
3+
"question": {
4+
"questionId": "3258",
5+
"questionFrontendId": "100176",
6+
"categoryTitle": "Database",
7+
"boundTopicId": 2644304,
8+
"title": "Classifying Triangles by Lengths",
9+
"titleSlug": "classifying-triangles-by-lengths",
10+
"content": null,
11+
"translatedTitle": null,
12+
"translatedContent": null,
13+
"isPaidOnly": true,
14+
"difficulty": "Easy",
15+
"likes": 1,
16+
"dislikes": 0,
17+
"isLiked": null,
18+
"similarQuestions": "[]",
19+
"contributors": [],
20+
"langToValidPlayground": null,
21+
"topicTags": [],
22+
"companyTagStats": null,
23+
"codeSnippets": null,
24+
"stats": "{\"totalAccepted\": \"37\", \"totalSubmission\": \"48\", \"totalAcceptedRaw\": 37, \"totalSubmissionRaw\": 48, \"acRate\": \"77.1%\"}",
25+
"hints": [],
26+
"solution": null,
27+
"status": null,
28+
"sampleTestCase": "{\"headers\":{\"Triangles\":[\"A\",\"B\",\"C\"]},\"rows\":{\"Triangles\":[[20,20,23],[20,20,20],[20,21,22],[13,14,30]]}}",
29+
"metaData": "{\"mysql\":[\"Create table If Not Exists Triangles (A int, B int, C int)\"],\"mssql\":[\"Create table Triangles (A int, B int, C int)\"],\"oraclesql\":[\"Create table Triangles (A int, B int, C int)\"],\"database\":true,\"name\":\"type_of_triangle\",\"pythondata\":[\"Triangles = pd.DataFrame([], columns=['A', 'B', 'C']).astype({'A':'Int64', 'B':'Int64', 'C':'Int64'})\\n\"],\"postgresql\":[\"Create table If Not Exists Triangles (A int, B int, C int)\\n\"],\"database_schema\":{\"Triangles\":{\"A\":\"INT\",\"B\":\"INT\",\"C\":\"INT\"}}}",
30+
"judgerAvailable": true,
31+
"judgeType": "large",
32+
"mysqlSchemas": [
33+
"Create table If Not Exists Triangles (A int, B int, C int)",
34+
"Truncate table Triangles",
35+
"insert into Triangles (A, B, C) values ('20', '20', '23')",
36+
"insert into Triangles (A, B, C) values ('20', '20', '20')",
37+
"insert into Triangles (A, B, C) values ('20', '21', '22')",
38+
"insert into Triangles (A, B, C) values ('13', '14', '30')"
39+
],
40+
"enableRunCode": true,
41+
"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>\"]}",
42+
"book": null,
43+
"isSubscribed": false,
44+
"isDailyQuestion": false,
45+
"dailyRecordStatus": null,
46+
"editorType": "CKEDITOR",
47+
"ugcQuestionId": null,
48+
"style": "LEETCODE",
49+
"exampleTestcases": "{\"headers\":{\"Triangles\":[\"A\",\"B\",\"C\"]},\"rows\":{\"Triangles\":[[20,20,23],[20,20,20],[20,21,22],[13,14,30]]}}",
50+
"__typename": "QuestionNode"
51+
}
52+
}
53+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"data": {
3+
"question": {
4+
"questionId": "3357",
5+
"questionFrontendId": "100252",
6+
"categoryTitle": "Database",
7+
"boundTopicId": 2653974,
8+
"title": "Employees Project Allocation",
9+
"titleSlug": "employees-project-allocation",
10+
"content": null,
11+
"translatedTitle": null,
12+
"translatedContent": null,
13+
"isPaidOnly": true,
14+
"difficulty": "Hard",
15+
"likes": 0,
16+
"dislikes": 0,
17+
"isLiked": null,
18+
"similarQuestions": "[]",
19+
"contributors": [],
20+
"langToValidPlayground": null,
21+
"topicTags": [],
22+
"companyTagStats": null,
23+
"codeSnippets": null,
24+
"stats": "{\"totalAccepted\": \"8\", \"totalSubmission\": \"14\", \"totalAcceptedRaw\": 8, \"totalSubmissionRaw\": 14, \"acRate\": \"57.1%\"}",
25+
"hints": [],
26+
"solution": null,
27+
"status": null,
28+
"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\"]]}}",
29+
"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)\"}}}",
30+
"judgerAvailable": true,
31+
"judgeType": "large",
32+
"mysqlSchemas": [
33+
"Create table If Not Exists Project (project_id int, employee_id int, workload int)",
34+
"Create table If Not Exists Employees (employee_id int, name varchar(20), team varchar(20))",
35+
"Truncate table Project",
36+
"insert into Project (project_id, employee_id, workload) values ('1', '1', '45')",
37+
"insert into Project (project_id, employee_id, workload) values ('1', '2', '90')",
38+
"insert into Project (project_id, employee_id, workload) values ('2', '3', '12')",
39+
"insert into Project (project_id, employee_id, workload) values ('2', '4', '68')",
40+
"Truncate table Employees",
41+
"insert into Employees (employee_id, name, team) values ('1', 'Khaled', 'A')",
42+
"insert into Employees (employee_id, name, team) values ('2', 'Ali', 'B')",
43+
"insert into Employees (employee_id, name, team) values ('3', 'John', 'B')",
44+
"insert into Employees (employee_id, name, team) values ('4', 'Doe', 'A')"
45+
],
46+
"enableRunCode": true,
47+
"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>\"]}",
48+
"book": null,
49+
"isSubscribed": false,
50+
"isDailyQuestion": false,
51+
"dailyRecordStatus": null,
52+
"editorType": "CKEDITOR",
53+
"ugcQuestionId": null,
54+
"style": "LEETCODE",
55+
"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\"]]}}",
56+
"__typename": "QuestionNode"
57+
}
58+
}
59+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"data": {
3+
"question": {
4+
"questionId": "3365",
5+
"questionFrontendId": "100260",
6+
"categoryTitle": "Database",
7+
"boundTopicId": 2653967,
8+
"title": "Find All Unique Email Domains",
9+
"titleSlug": "find-all-unique-email-domains",
10+
"content": null,
11+
"translatedTitle": null,
12+
"translatedContent": null,
13+
"isPaidOnly": true,
14+
"difficulty": "Easy",
15+
"likes": 1,
16+
"dislikes": 0,
17+
"isLiked": null,
18+
"similarQuestions": "[]",
19+
"contributors": [],
20+
"langToValidPlayground": null,
21+
"topicTags": [],
22+
"companyTagStats": null,
23+
"codeSnippets": null,
24+
"stats": "{\"totalAccepted\": \"40\", \"totalSubmission\": \"60\", \"totalAcceptedRaw\": 40, \"totalSubmissionRaw\": 60, \"acRate\": \"66.7%\"}",
25+
"hints": [],
26+
"solution": null,
27+
"status": null,
28+
"sampleTestCase": "{\"headers\":{\"Emails\":[\"id\",\"email\"]},\"rows\":{\"Emails\":[[336,\"[email protected]\"],[489,\"[email protected]\"],[449,\"[email protected]\"],[95,\"[email protected]\"],[320,\"[email protected]\"],[411,\"[email protected]\"]]}}",
29+
"metaData": "{\"mysql\":[\"Create table If Not Exists Emails (id int, email varchar(255))\"],\"mssql\":[\"Create table Emails (id int, email varchar(255))\"],\"oraclesql\":[\"Create table Emails (id int, email varchar(255))\"],\"database\":true,\"name\":\"find_unique_email_domains\",\"postgresql\":[\"CREATE TABLE Emails (\\n id INT,\\n email VARCHAR(255)\\n);\"],\"pythondata\":[\"Emails = pd.DataFrame([], columns=['id', 'email']).astype({'id':'Int64', 'email':'object'})\\n\"],\"database_schema\":{\"Emails\":{\"id\":\"INT\",\"email\":\"VARCHAR(255)\"}}}",
30+
"judgerAvailable": true,
31+
"judgeType": "large",
32+
"mysqlSchemas": [
33+
"Create table If Not Exists Emails (id int, email varchar(255))",
34+
"Truncate table Emails",
35+
"insert into Emails (id, email) values ('336', '[email protected]')",
36+
"insert into Emails (id, email) values ('489', '[email protected]')",
37+
"insert into Emails (id, email) values ('449', '[email protected]')",
38+
"insert into Emails (id, email) values ('95', '[email protected]')",
39+
"insert into Emails (id, email) values ('320', '[email protected]')",
40+
"insert into Emails (id, email) values ('411', '[email protected]')"
41+
],
42+
"enableRunCode": true,
43+
"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>\"]}",
44+
"book": null,
45+
"isSubscribed": false,
46+
"isDailyQuestion": false,
47+
"dailyRecordStatus": null,
48+
"editorType": "CKEDITOR",
49+
"ugcQuestionId": null,
50+
"style": "LEETCODE",
51+
"exampleTestcases": "{\"headers\":{\"Emails\":[\"id\",\"email\"]},\"rows\":{\"Emails\":[[336,\"[email protected]\"],[489,\"[email protected]\"],[449,\"[email protected]\"],[95,\"[email protected]\"],[320,\"[email protected]\"],[411,\"[email protected]\"]]}}",
52+
"__typename": "QuestionNode"
53+
}
54+
}
55+
}

0 commit comments

Comments
 (0)