Skip to content

Commit 9ac85e5

Browse files
committed
update
1 parent ba2e274 commit 9ac85e5

File tree

49 files changed

+17249
-12320
lines changed

Some content is hidden

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

49 files changed

+17249
-12320
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 力扣题库(完整版)
22

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

leetcode-cn/origin-data.json

Lines changed: 7529 additions & 7298 deletions
Large diffs are not rendered by default.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"data": {
3+
"question": {
4+
"questionId": "2643",
5+
"questionFrontendId": "2504",
6+
"categoryTitle": "Database",
7+
"boundTopicId": 2017020,
8+
"title": "Concatenate the Name and the Profession",
9+
"titleSlug": "concatenate-the-name-and-the-profession",
10+
"content": null,
11+
"translatedTitle": null,
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+
"companyTagStats": null,
23+
"codeSnippets": null,
24+
"stats": "{\"totalAccepted\": \"36\", \"totalSubmission\": \"39\", \"totalAcceptedRaw\": 36, \"totalSubmissionRaw\": 39, \"acRate\": \"92.3%\"}",
25+
"hints": [],
26+
"solution": null,
27+
"status": null,
28+
"sampleTestCase": "{\"headers\": {\"Person\": [\"person_id\", \"name\", \"profession\"]}, \"rows\": {\"Person\": [[1, \"Alex\", \"Singer\"], [3, \"Alice\", \"Actor\"], [2, \"Bob\", \"Player\"], [4, \"Messi\", \"Doctor\"], [6, \"Tyson\", \"Engineer\"], [5, \"Meir\", \"Lawyer\"]]}}",
29+
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Person (person_id int, name varchar(30), profession ENUM('Doctor','Singer','Actor','Player','Engineer','Lawyer'))\"\n ],\n \"mssql\": [\n \"Create table Person (person_id int, name varchar(30), profession varchar(8) not null check(profession in ('Doctor','Singer','Actor','Player','Engineer','Lawyer')))\"\n ],\n \"oraclesql\": [\n \"Create table Person (person_id int, name varchar(30), profession varchar(8) not null check(profession in ('Doctor','Singer','Actor','Player','Engineer','Lawyer')))\"\n ],\n \"database\": true\n}",
30+
"judgerAvailable": true,
31+
"judgeType": "large",
32+
"mysqlSchemas": [
33+
"Create table If Not Exists Person (person_id int, name varchar(30), profession ENUM('Doctor','Singer','Actor','Player','Engineer','Lawyer'))",
34+
"Truncate table Person",
35+
"insert into Person (person_id, name, profession) values ('1', 'Alex', 'Singer')",
36+
"insert into Person (person_id, name, profession) values ('3', 'Alice', 'Actor')",
37+
"insert into Person (person_id, name, profession) values ('2', 'Bob', 'Player')",
38+
"insert into Person (person_id, name, profession) values ('4', 'Messi', 'Doctor')",
39+
"insert into Person (person_id, name, profession) values ('6', 'Tyson', 'Engineer')",
40+
"insert into Person (person_id, name, profession) values ('5', 'Meir', 'Lawyer')"
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>\"]}",
44+
"book": null,
45+
"isSubscribed": false,
46+
"isDailyQuestion": false,
47+
"dailyRecordStatus": null,
48+
"editorType": "CKEDITOR",
49+
"ugcQuestionId": null,
50+
"style": "LEETCODE",
51+
"exampleTestcases": "{\"headers\": {\"Person\": [\"person_id\", \"name\", \"profession\"]}, \"rows\": {\"Person\": [[1, \"Alex\", \"Singer\"], [3, \"Alice\", \"Actor\"], [2, \"Bob\", \"Player\"], [4, \"Messi\", \"Doctor\"], [6, \"Tyson\", \"Engineer\"], [5, \"Meir\", \"Lawyer\"]]}}",
52+
"__typename": "QuestionNode"
53+
}
54+
}
55+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"data": {
3+
"question": {
4+
"questionId": "2637",
5+
"questionFrontendId": "2494",
6+
"categoryTitle": "Database",
7+
"boundTopicId": 2006422,
8+
"title": "Merge Overlapping Events in the Same Hall",
9+
"titleSlug": "merge-overlapping-events-in-the-same-hall",
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+
{
23+
"name": "Database",
24+
"slug": "database",
25+
"translatedName": "数据库",
26+
"__typename": "TopicTagNode"
27+
}
28+
],
29+
"companyTagStats": null,
30+
"codeSnippets": null,
31+
"stats": "{\"totalAccepted\": \"23\", \"totalSubmission\": \"41\", \"totalAcceptedRaw\": 23, \"totalSubmissionRaw\": 41, \"acRate\": \"56.1%\"}",
32+
"hints": [],
33+
"solution": null,
34+
"status": null,
35+
"sampleTestCase": "{\"headers\": {\"HallEvents\": [\"hall_id\", \"start_day\", \"end_day\"]}, \"rows\": {\"HallEvents\": [[1, \"2023-01-13\", \"2023-01-14\"], [1, \"2023-01-14\", \"2023-01-17\"], [1, \"2023-01-18\", \"2023-01-25\"], [2, \"2022-12-09\", \"2022-12-23\"], [2, \"2022-12-13\", \"2022-12-17\"], [3, \"2022-12-01\", \"2023-01-30\"]]}}",
36+
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists HallEvents (hall_id int, start_day date, end_day date)\"\n ],\n \"mssql\": [\n \"Create table HallEvents (hall_id int, start_day date, end_day date)\"\n ],\n \"oraclesql\": [\n \"Create table HallEvents (hall_id int, start_day date, end_day date)\",\n \"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\"\n ],\n \"database\": true\n}",
37+
"judgerAvailable": true,
38+
"judgeType": "large",
39+
"mysqlSchemas": [
40+
"Create table If Not Exists HallEvents (hall_id int, start_day date, end_day date)",
41+
"Truncate table HallEvents",
42+
"insert into HallEvents (hall_id, start_day, end_day) values ('1', '2023-01-13', '2023-01-14')",
43+
"insert into HallEvents (hall_id, start_day, end_day) values ('1', '2023-01-14', '2023-01-17')",
44+
"insert into HallEvents (hall_id, start_day, end_day) values ('1', '2023-01-18', '2023-01-25')",
45+
"insert into HallEvents (hall_id, start_day, end_day) values ('2', '2022-12-09', '2022-12-23')",
46+
"insert into HallEvents (hall_id, start_day, end_day) values ('2', '2022-12-13', '2022-12-17')",
47+
"insert into HallEvents (hall_id, start_day, end_day) values ('3', '2022-12-01', '2023-01-30')"
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\": {\"HallEvents\": [\"hall_id\", \"start_day\", \"end_day\"]}, \"rows\": {\"HallEvents\": [[1, \"2023-01-13\", \"2023-01-14\"], [1, \"2023-01-14\", \"2023-01-17\"], [1, \"2023-01-18\", \"2023-01-25\"], [2, \"2022-12-09\", \"2022-12-23\"], [2, \"2022-12-13\", \"2022-12-17\"], [3, \"2022-12-01\", \"2023-01-30\"]]}}",
59+
"__typename": "QuestionNode"
60+
}
61+
}
62+
}

0 commit comments

Comments
 (0)