Skip to content

Commit f05348a

Browse files
committed
update
1 parent f14c831 commit f05348a

File tree

87 files changed

+22867
-14155
lines changed

Some content is hidden

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

87 files changed

+22867
-14155
lines changed

Diff for: README.md

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

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

Diff for: leetcode-cn/origin-data.json

+8,686-8,182
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"data": {
3+
"question": {
4+
"questionId": "3282",
5+
"questionFrontendId": "2985",
6+
"categoryTitle": "Database",
7+
"boundTopicId": 2586418,
8+
"title": "Calculate Compressed Mean",
9+
"titleSlug": "calculate-compressed-mean",
10+
"content": null,
11+
"translatedTitle": "计算订单平均商品数量",
12+
"translatedContent": null,
13+
"isPaidOnly": true,
14+
"difficulty": "Easy",
15+
"likes": 0,
16+
"dislikes": 0,
17+
"isLiked": null,
18+
"similarQuestions": "[]",
19+
"contributors": [],
20+
"langToValidPlayground": null,
21+
"topicTags": [
22+
{
23+
"name": "Database",
24+
"slug": "database",
25+
"translatedName": "数据库",
26+
"__typename": "TopicTagNode"
27+
}
28+
],
29+
"companyTagStats": null,
30+
"codeSnippets": null,
31+
"stats": "{\"totalAccepted\": \"49\", \"totalSubmission\": \"56\", \"totalAcceptedRaw\": 49, \"totalSubmissionRaw\": 56, \"acRate\": \"87.5%\"}",
32+
"hints": [],
33+
"solution": null,
34+
"status": null,
35+
"sampleTestCase": "{\"headers\":{\"Orders\":[\"order_id\",\"item_count\",\"order_occurrences\"]},\"rows\":{\"Orders\":[[10,1,500],[11,2,1000],[12,3,800],[13,4,1000]]}}",
36+
"metaData": "{\"mysql\":[\"Create Table if Not Exists Orders ( order_id int, item_count int, order_occurrences int)\"],\"mssql\":[\"Create Table Orders ( order_id int, item_count int, order_occurrences int)\"],\"oraclesql\":[\"Create Table Orders ( order_id int, item_count int, order_occurrences int)\"],\"database\":true,\"languages\":[\"mysql\",\"mssql\",\"oraclesql\"],\"database_schema\":{\"Orders\":{\"order_id\":\"INT\",\"item_count\":\"INT\",\"order_occurrences\":\"INT\"}}}",
37+
"judgerAvailable": true,
38+
"judgeType": "large",
39+
"mysqlSchemas": [
40+
"Create Table if Not Exists Orders ( order_id int, item_count int, order_occurrences int)",
41+
"Truncate table Orders",
42+
"insert into Orders (order_id, item_count, order_occurrences) values ('10', '1', '500')",
43+
"insert into Orders (order_id, item_count, order_occurrences) values ('11', '2', '1000')",
44+
"insert into Orders (order_id, item_count, order_occurrences) values ('12', '3', '800')",
45+
"insert into Orders (order_id, item_count, order_occurrences) values ('13', '4', '1000')"
46+
],
47+
"enableRunCode": true,
48+
"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>\"]}",
49+
"book": null,
50+
"isSubscribed": false,
51+
"isDailyQuestion": false,
52+
"dailyRecordStatus": null,
53+
"editorType": "CKEDITOR",
54+
"ugcQuestionId": null,
55+
"style": "LEETCODE",
56+
"exampleTestcases": "{\"headers\":{\"Orders\":[\"order_id\",\"item_count\",\"order_occurrences\"]},\"rows\":{\"Orders\":[[10,1,500],[11,2,1000],[12,3,800],[13,4,1000]]}}",
57+
"__typename": "QuestionNode"
58+
}
59+
}
60+
}
+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"data": {
3+
"question": {
4+
"questionId": "3286",
5+
"questionFrontendId": "2989",
6+
"categoryTitle": "Database",
7+
"boundTopicId": 2586388,
8+
"title": "Class Performance",
9+
"titleSlug": "class-performance",
10+
"content": null,
11+
"translatedTitle": "班级表现",
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+
{
23+
"name": "Database",
24+
"slug": "database",
25+
"translatedName": "数据库",
26+
"__typename": "TopicTagNode"
27+
}
28+
],
29+
"companyTagStats": null,
30+
"codeSnippets": null,
31+
"stats": "{\"totalAccepted\": \"60\", \"totalSubmission\": \"60\", \"totalAcceptedRaw\": 60, \"totalSubmissionRaw\": 60, \"acRate\": \"100.0%\"}",
32+
"hints": [],
33+
"solution": null,
34+
"status": null,
35+
"sampleTestCase": "{\"headers\":{\"Scores\":[\"student_id\",\"student_name\",\"assignment1\",\"assignment2\",\"assignment3\"]},\"rows\":{\"Scores\":[[309,\"Owen\",88,47,87],[321,\"Claire\",98,95,37],[338,\"Julian\",100,64,43],[423,\"Peyton\",60,44,47],[896,\"David\",32,37,50],[235,\"Camila\",31,53,69]]}}",
36+
"metaData": "{\"mysql\":[\"Create Table if Not Exists Scores (student_id int, student_name varchar(40), assignment1 int,assignment2 int, assignment3 int)\"],\"mssql\":[\"Create Table Scores (student_id int, student_name varchar(40), assignment1 int,assignment2 int, assignment3 int)\"],\"oraclesql\":[\"Create Table Scores (student_id int, student_name varchar(40), assignment1 int,assignment2 int, assignment3 int)\"],\"database\":true,\"languages\":[\"mysql\",\"mssql\",\"oraclesql\"],\"database_schema\":{\"Scores\":{\"student_id\":\"INT\",\"student_name\":\"VARCHAR(40)\",\"assignment1\":\"INT\",\"assignment2\":\"INT\",\"assignment3\":\"INT\"}}}",
37+
"judgerAvailable": true,
38+
"judgeType": "large",
39+
"mysqlSchemas": [
40+
"Create Table if Not Exists Scores (student_id int, student_name varchar(40), assignment1 int,assignment2 int, assignment3 int)",
41+
"Truncate table Scores",
42+
"insert into Scores (student_id, student_name, assignment1, assignment2, assignment3) values ('309', 'Owen', '88', '47', '87')",
43+
"insert into Scores (student_id, student_name, assignment1, assignment2, assignment3) values ('321', 'Claire', '98', '95', '37')",
44+
"insert into Scores (student_id, student_name, assignment1, assignment2, assignment3) values ('338', 'Julian', '100', '64', '43')",
45+
"insert into Scores (student_id, student_name, assignment1, assignment2, assignment3) values ('423', 'Peyton', '60', '44', '47')",
46+
"insert into Scores (student_id, student_name, assignment1, assignment2, assignment3) values ('896', 'David', '32', '37', '50')",
47+
"insert into Scores (student_id, student_name, assignment1, assignment2, assignment3) values ('235', 'Camila', '31', '53', '69')"
48+
],
49+
"enableRunCode": true,
50+
"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>\"]}",
51+
"book": null,
52+
"isSubscribed": false,
53+
"isDailyQuestion": false,
54+
"dailyRecordStatus": null,
55+
"editorType": "CKEDITOR",
56+
"ugcQuestionId": null,
57+
"style": "LEETCODE",
58+
"exampleTestcases": "{\"headers\":{\"Scores\":[\"student_id\",\"student_name\",\"assignment1\",\"assignment2\",\"assignment3\"]},\"rows\":{\"Scores\":[[309,\"Owen\",88,47,87],[321,\"Claire\",98,95,37],[338,\"Julian\",100,64,43],[423,\"Peyton\",60,44,47],[896,\"David\",32,37,50],[235,\"Camila\",31,53,69]]}}",
59+
"__typename": "QuestionNode"
60+
}
61+
}
62+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"data": {
3+
"question": {
4+
"questionId": "3284",
5+
"questionFrontendId": "2987",
6+
"categoryTitle": "Database",
7+
"boundTopicId": 2586420,
8+
"title": "Find Expensive Cities",
9+
"titleSlug": "find-expensive-cities",
10+
"content": null,
11+
"translatedTitle": "寻找房价最贵的城市",
12+
"translatedContent": null,
13+
"isPaidOnly": true,
14+
"difficulty": "Easy",
15+
"likes": 0,
16+
"dislikes": 0,
17+
"isLiked": null,
18+
"similarQuestions": "[]",
19+
"contributors": [],
20+
"langToValidPlayground": null,
21+
"topicTags": [
22+
{
23+
"name": "Database",
24+
"slug": "database",
25+
"translatedName": "数据库",
26+
"__typename": "TopicTagNode"
27+
}
28+
],
29+
"companyTagStats": null,
30+
"codeSnippets": null,
31+
"stats": "{\"totalAccepted\": \"43\", \"totalSubmission\": \"46\", \"totalAcceptedRaw\": 43, \"totalSubmissionRaw\": 46, \"acRate\": \"93.5%\"}",
32+
"hints": [],
33+
"solution": null,
34+
"status": null,
35+
"sampleTestCase": "{\"headers\":{\"Listings\":[\"listing_id\",\"city\",\"price\"]},\"rows\":{\"Listings\":[[113,\"LosAngeles\",7560386],[136,\"SanFrancisco\",2380268],[92,\"Chicago\",9833209],[60,\"Chicago\",5147582],[8,\"Chicago\",5274441],[79,\"SanFrancisco\",8372065],[37,\"Chicago\",7939595],[53,\"LosAngeles\",4965123],[178,\"SanFrancisco\",999207],[51,\"NewYork\",5951718],[121,\"NewYork\",2893760]]}}",
36+
"metaData": "{\"mysql\":[\"Create Table if Not Exists Listings (listing_id int, city varchar(50), price int)\"],\"mssql\":[\"Create Table Listings (listing_id int, city varchar(50), price int)\"],\"oraclesql\":[\"Create Table Listings (listing_id int, city varchar(50), price int)\"],\"database\":true,\"languages\":[\"mysql\",\"mssql\",\"oraclesql\"],\"database_schema\":{\"Listings\":{\"listing_id\":\"INT\",\"city\":\"VARCHAR(50)\",\"price\":\"INT\"}}}",
37+
"judgerAvailable": true,
38+
"judgeType": "large",
39+
"mysqlSchemas": [
40+
"Create Table if Not Exists Listings (listing_id int, city varchar(50), price int)",
41+
"Truncate table Listings",
42+
"insert into Listings (listing_id, city, price) values ('113', 'LosAngeles', '7560386')",
43+
"insert into Listings (listing_id, city, price) values ('136', 'SanFrancisco', '2380268')",
44+
"insert into Listings (listing_id, city, price) values ('92', 'Chicago', '9833209')",
45+
"insert into Listings (listing_id, city, price) values ('60', 'Chicago', '5147582')",
46+
"insert into Listings (listing_id, city, price) values ('8', 'Chicago', '5274441')",
47+
"insert into Listings (listing_id, city, price) values ('79', 'SanFrancisco', '8372065')",
48+
"insert into Listings (listing_id, city, price) values ('37', 'Chicago', '7939595')",
49+
"insert into Listings (listing_id, city, price) values ('53', 'LosAngeles', '4965123')",
50+
"insert into Listings (listing_id, city, price) values ('178', 'SanFrancisco', '999207')",
51+
"insert into Listings (listing_id, city, price) values ('51', 'NewYork', '5951718')",
52+
"insert into Listings (listing_id, city, price) values ('121', 'NewYork', '2893760')"
53+
],
54+
"enableRunCode": true,
55+
"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>\"]}",
56+
"book": null,
57+
"isSubscribed": false,
58+
"isDailyQuestion": false,
59+
"dailyRecordStatus": null,
60+
"editorType": "CKEDITOR",
61+
"ugcQuestionId": null,
62+
"style": "LEETCODE",
63+
"exampleTestcases": "{\"headers\":{\"Listings\":[\"listing_id\",\"city\",\"price\"]},\"rows\":{\"Listings\":[[113,\"LosAngeles\",7560386],[136,\"SanFrancisco\",2380268],[92,\"Chicago\",9833209],[60,\"Chicago\",5147582],[8,\"Chicago\",5274441],[79,\"SanFrancisco\",8372065],[37,\"Chicago\",7939595],[53,\"LosAngeles\",4965123],[178,\"SanFrancisco\",999207],[51,\"NewYork\",5951718],[121,\"NewYork\",2893760]]}}",
64+
"__typename": "QuestionNode"
65+
}
66+
}
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"data": {
3+
"question": {
4+
"questionId": "3281",
5+
"questionFrontendId": "2984",
6+
"categoryTitle": "Database",
7+
"boundTopicId": 2586419,
8+
"title": "Find Peak Calling Hours for Each City",
9+
"titleSlug": "find-peak-calling-hours-for-each-city",
10+
"content": null,
11+
"translatedTitle": "找到每座城市的高峰通话时间",
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+
{
23+
"name": "Database",
24+
"slug": "database",
25+
"translatedName": "数据库",
26+
"__typename": "TopicTagNode"
27+
}
28+
],
29+
"companyTagStats": null,
30+
"codeSnippets": null,
31+
"stats": "{\"totalAccepted\": \"37\", \"totalSubmission\": \"54\", \"totalAcceptedRaw\": 37, \"totalSubmissionRaw\": 54, \"acRate\": \"68.5%\"}",
32+
"hints": [],
33+
"solution": null,
34+
"status": null,
35+
"sampleTestCase": "{\"headers\":{\"Calls\":[\"caller_id\",\"recipient_id\",\"call_time\",\"city\"]},\"rows\":{\"Calls\":[[8,4,\"2021-08-24 22:46:07\",\"Houston\"],[4,8,\"2021-08-24 22:57:13\",\"Houston\"],[5,1,\"2021-08-11 21:28:44\",\"Houston\"],[8,3,\"2021-08-17 22:04:15\",\"Houston\"],[11,3,\"2021-08-17 13:07:00\",\"New York\"],[8,11,\"2021-08-17 14:22:22\",\"New York\"]]}}",
36+
"metaData": "{\"mysql\":[\"Create table If Not Exists Calls (caller_id int, recipient_id int, call_time datetime, city varchar(40))\"],\"mssql\":[\"Create table Calls (caller_id int, recipient_id int, call_time datetime, city varchar(40))\"],\"oraclesql\":[\"Create table Calls (caller_id int, recipient_id int, call_time date, city varchar(40))\",\"ALTER SESSION SET nls_date_format='YYYY-MM-DD HH24:MI:SS'\"],\"database\":true,\"languages\":[\"mysql\",\"mssql\",\"oraclesql\"],\"database_schema\":{\"Calls\":{\"caller_id\":\"INT\",\"recipient_id\":\"INT\",\"call_time\":\"DATETIME\",\"city\":\"VARCHAR(40)\"}}}",
37+
"judgerAvailable": true,
38+
"judgeType": "large",
39+
"mysqlSchemas": [
40+
"Create table If Not Exists Calls (caller_id int, recipient_id int, call_time datetime, city varchar(40))",
41+
"Truncate table Calls",
42+
"insert into Calls (caller_id, recipient_id, call_time, city) values ('8', '4', '2021-08-24 22:46:07', 'Houston')",
43+
"insert into Calls (caller_id, recipient_id, call_time, city) values ('4', '8', '2021-08-24 22:57:13', 'Houston')",
44+
"insert into Calls (caller_id, recipient_id, call_time, city) values ('5', '1', '2021-08-11 21:28:44', 'Houston')",
45+
"insert into Calls (caller_id, recipient_id, call_time, city) values ('8', '3', '2021-08-17 22:04:15', 'Houston')",
46+
"insert into Calls (caller_id, recipient_id, call_time, city) values ('11', '3', '2021-08-17 13:07:00', 'New York')",
47+
"insert into Calls (caller_id, recipient_id, call_time, city) values ('8', '11', '2021-08-17 14:22:22', 'New York')"
48+
],
49+
"enableRunCode": true,
50+
"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>\"]}",
51+
"book": null,
52+
"isSubscribed": false,
53+
"isDailyQuestion": false,
54+
"dailyRecordStatus": null,
55+
"editorType": "CKEDITOR",
56+
"ugcQuestionId": null,
57+
"style": "LEETCODE",
58+
"exampleTestcases": "{\"headers\":{\"Calls\":[\"caller_id\",\"recipient_id\",\"call_time\",\"city\"]},\"rows\":{\"Calls\":[[8,4,\"2021-08-24 22:46:07\",\"Houston\"],[4,8,\"2021-08-24 22:57:13\",\"Houston\"],[5,1,\"2021-08-11 21:28:44\",\"Houston\"],[8,3,\"2021-08-17 22:04:15\",\"Houston\"],[11,3,\"2021-08-17 13:07:00\",\"New York\"],[8,11,\"2021-08-17 14:22:22\",\"New York\"]]}}",
59+
"__typename": "QuestionNode"
60+
}
61+
}
62+
}

0 commit comments

Comments
 (0)