{ "data": { "question": { "questionId": "603", "questionFrontendId": "603", "categoryTitle": "Database", "boundTopicId": 2639, "title": "Consecutive Available Seats", "titleSlug": "consecutive-available-seats", "content": null, "translatedTitle": "连续空余座位", "translatedContent": null, "isPaidOnly": true, "difficulty": "Easy", "likes": 148, "dislikes": 0, "isLiked": null, "similarQuestions": "[]", "contributors": [], "langToValidPlayground": null, "topicTags": [ { "name": "Database", "slug": "database", "translatedName": "数据库", "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"28.7K\", \"totalSubmission\": \"45.4K\", \"totalAcceptedRaw\": 28717, \"totalSubmissionRaw\": 45412, \"acRate\": \"63.2%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Cinema\":[\"seat_id\",\"free\"]},\"rows\":{\"Cinema\":[[1,1],[2,0],[3,1],[4,1],[5,1]]}}", "metaData": "{\"mysql\":[\"Create table If Not Exists Cinema (seat_id int primary key auto_increment, free bool)\"],\"mssql\":[\"Create table Cinema (seat_id int primary key, free BIT)\"],\"oraclesql\":[\"Create table Cinema (seat_id int primary key, free NUMBER(1))\"],\"database\":true,\"name\":\"consecutive_available_seats\",\"pythondata\":[\"Cinema = pd.DataFrame([], columns=['seat_id', 'free']).astype({'seat_id':'Int64', 'free':'int'})\"],\"postgresql\":[\"Create table If Not Exists Cinema (seat_id int, free int)\\n\"],\"manual\":false,\"database_schema\":{\"Cinema\":{\"seat_id\":\"INT\",\"free\":\"BOOLEAN\"}}}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Cinema (seat_id int primary key auto_increment, free bool)", "Truncate table Cinema", "insert into Cinema (seat_id, free) values ('1', '1')", "insert into Cinema (seat_id, free) values ('2', '0')", "insert into Cinema (seat_id, free) values ('3', '1')", "insert into Cinema (seat_id, free) values ('4', '1')", "insert into Cinema (seat_id, free) values ('5', '1')" ], "enableRunCode": true, "envInfo": "{\"mysql\":[\"MySQL\",\"
\\u7248\\u672c\\uff1a mssql server 2019.<\\/p>\"],\"oraclesql\":[\"Oracle\",\" Oracle Sql 11.2.<\\/p>\"],\"pythondata\":[\"Pandas\",\" Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0<\\/p>\"],\"postgresql\":[\"PostgreSQL\",\" PostgreSQL 16<\\/p>\"]}",
"book": null,
"isSubscribed": false,
"isDailyQuestion": false,
"dailyRecordStatus": null,
"editorType": "CKEDITOR",
"ugcQuestionId": null,
"style": "LEETCODE",
"exampleTestcases": "{\"headers\":{\"Cinema\":[\"seat_id\",\"free\"]},\"rows\":{\"Cinema\":[[1,1],[2,0],[3,1],[4,1],[5,1]]}}",
"__typename": "QuestionNode"
}
}
}MySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"