2022-12-14 18:41:02 +08:00
{
"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 ,
2023-12-09 18:42:21 +08:00
"translatedTitle" : "合并在同一个大厅重叠的活动" ,
2022-12-14 18:41:02 +08:00
"translatedContent" : null ,
"isPaidOnly" : true ,
"difficulty" : "Hard" ,
2023-12-09 18:42:21 +08:00
"likes" : 7 ,
2022-12-14 18:41:02 +08:00
"dislikes" : 0 ,
"isLiked" : null ,
"similarQuestions" : "[]" ,
"contributors" : [ ] ,
"langToValidPlayground" : null ,
"topicTags" : [
{
"name" : "Database" ,
"slug" : "database" ,
"translatedName" : "数据库" ,
"__typename" : "TopicTagNode"
}
] ,
"companyTagStats" : null ,
"codeSnippets" : null ,
2023-12-09 18:42:21 +08:00
"stats" : "{\"totalAccepted\": \"540\", \"totalSubmission\": \"1.3K\", \"totalAcceptedRaw\": 540, \"totalSubmissionRaw\": 1291, \"acRate\": \"41.8%\"}" ,
2022-12-14 18:41:02 +08:00
"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\"]]}}" ,
2023-12-09 18:42:21 +08:00
"metaData" : "{\"mysql\":[\"Create table If Not Exists HallEvents (hall_id int, start_day date, end_day date)\"],\"mssql\":[\"Create table HallEvents (hall_id int, start_day date, end_day date)\"],\"oraclesql\":[\"Create table HallEvents (hall_id int, start_day date, end_day date)\",\"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\"],\"database\":true,\"name\":\"merge_events\",\"pythondata\":[\"HallEvents = pd.DataFrame([], columns=['hall_id', 'start_day', 'end_day']).astype({'hall_id':'Int64', 'start_day':'datetime64[ns]', 'end_day':'datetime64[ns]'})\"],\"database_schema\":{\"HallEvents\":{\"hall_id\":\"INT\",\"start_day\":\"DATE\",\"end_day\":\"DATE\"}}}" ,
2022-12-14 18:41:02 +08:00
"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 ,
2023-12-09 18:42:21 +08:00
"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>\"]}" ,
2022-12-14 18:41:02 +08:00
"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"
}
}
}