1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-03 14:32:54 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-12-14 18:41:02 +08:00
parent ba2e2740b3
commit 9ac85e5cbf
49 changed files with 17249 additions and 12320 deletions

View File

@@ -0,0 +1,55 @@
{
"data": {
"question": {
"questionId": "2643",
"questionFrontendId": "2504",
"categoryTitle": "Database",
"boundTopicId": 2017020,
"title": "Concatenate the Name and the Profession",
"titleSlug": "concatenate-the-name-and-the-profession",
"content": null,
"translatedTitle": null,
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
"likes": 0,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"36\", \"totalSubmission\": \"39\", \"totalAcceptedRaw\": 36, \"totalSubmissionRaw\": 39, \"acRate\": \"92.3%\"}",
"hints": [],
"solution": null,
"status": null,
"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\"]]}}",
"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}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Person (person_id int, name varchar(30), profession ENUM('Doctor','Singer','Actor','Player','Engineer','Lawyer'))",
"Truncate table Person",
"insert into Person (person_id, name, profession) values ('1', 'Alex', 'Singer')",
"insert into Person (person_id, name, profession) values ('3', 'Alice', 'Actor')",
"insert into Person (person_id, name, profession) values ('2', 'Bob', 'Player')",
"insert into Person (person_id, name, profession) values ('4', 'Messi', 'Doctor')",
"insert into Person (person_id, name, profession) values ('6', 'Tyson', 'Engineer')",
"insert into Person (person_id, name, profession) values ('5', 'Meir', 'Lawyer')"
],
"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\": {\"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\"]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,62 @@
{
"data": {
"question": {
"questionId": "2637",
"questionFrontendId": "2494",
"categoryTitle": "Database",
"boundTopicId": 2006422,
"title": "Merge Overlapping Events in the Same Hall",
"titleSlug": "merge-overlapping-events-in-the-same-hall",
"content": null,
"translatedTitle": null,
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Hard",
"likes": 0,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"23\", \"totalSubmission\": \"41\", \"totalAcceptedRaw\": 23, \"totalSubmissionRaw\": 41, \"acRate\": \"56.1%\"}",
"hints": [],
"solution": null,
"status": null,
"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\"]]}}",
"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}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists HallEvents (hall_id int, start_day date, end_day date)",
"Truncate table HallEvents",
"insert into HallEvents (hall_id, start_day, end_day) values ('1', '2023-01-13', '2023-01-14')",
"insert into HallEvents (hall_id, start_day, end_day) values ('1', '2023-01-14', '2023-01-17')",
"insert into HallEvents (hall_id, start_day, end_day) values ('1', '2023-01-18', '2023-01-25')",
"insert into HallEvents (hall_id, start_day, end_day) values ('2', '2022-12-09', '2022-12-23')",
"insert into HallEvents (hall_id, start_day, end_day) values ('2', '2022-12-13', '2022-12-17')",
"insert into HallEvents (hall_id, start_day, end_day) values ('3', '2022-12-01', '2023-01-30')"
],
"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\": {\"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\"]]}}",
"__typename": "QuestionNode"
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long