{ "data": { "question": { "questionId": "1327", "questionFrontendId": "1204", "categoryTitle": "Database", "boundTopicId": 33152, "title": "Last Person to Fit in the Bus", "titleSlug": "last-person-to-fit-in-the-bus", "content": null, "translatedTitle": "最后一个能进入电梯的人", "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 46, "dislikes": 0, "isLiked": null, "similarQuestions": "[]", "contributors": [], "langToValidPlayground": null, "topicTags": [ { "name": "Database", "slug": "database", "translatedName": "数据库", "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"7.4K\", \"totalSubmission\": \"10K\", \"totalAcceptedRaw\": 7354, \"totalSubmissionRaw\": 10046, \"acRate\": \"73.2%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Queue\":[\"person_id\",\"person_name\",\"weight\",\"turn\"]},\"rows\":{\"Queue\":[[5,\"Alice\",250,1],[4,\"Bob\",175,5],[3,\"Alex\",350,2],[6,\"John Cena\",400,3],[1,\"Winston\",500,6],[2,\"Marie\",200,4]]}}", "metaData": "{\n \"manual\": false,\n \"mysql\": [\n \"Create table If Not Exists Queue (person_id int, person_name varchar(30), weight int, turn int)\"\n ],\n \"mssql\": [\n \"Create table Queue (person_id int, person_name varchar(30), weight int, turn int)\"\n ],\n \"oraclesql\": [\n \"Create table Queue (person_id int, person_name varchar(30), weight int, turn int)\"\n ],\n \"database\": true\n}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Queue (person_id int, person_name varchar(30), weight int, turn int)", "Truncate table Queue", "insert into Queue (person_id, person_name, weight, turn) values ('5', 'Alice', '250', '1')", "insert into Queue (person_id, person_name, weight, turn) values ('4', 'Bob', '175', '5')", "insert into Queue (person_id, person_name, weight, turn) values ('3', 'Alex', '350', '2')", "insert into Queue (person_id, person_name, weight, turn) values ('6', 'John Cena', '400', '3')", "insert into Queue (person_id, person_name, weight, turn) values ('1', 'Winston', '500', '6')", "insert into Queue (person_id, person_name, weight, turn) values ('2', 'Marie', '200', '4')" ], "enableRunCode": true, "envInfo": "{\"mysql\":[\"MySQL\",\"

\\u7248\\u672c\\uff1aMySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"

mssql server 2019.<\\/p>\"],\"oraclesql\":[\"Oracle\",\"

Oracle Sql 11.2.<\\/p>\"]}", "book": null, "isSubscribed": false, "isDailyQuestion": false, "dailyRecordStatus": null, "editorType": "CKEDITOR", "ugcQuestionId": null, "style": "LEETCODE", "exampleTestcases": "{\"headers\":{\"Queue\":[\"person_id\",\"person_name\",\"weight\",\"turn\"]},\"rows\":{\"Queue\":[[5,\"Alice\",250,1],[4,\"Bob\",175,5],[3,\"Alex\",350,2],[6,\"John Cena\",400,3],[1,\"Winston\",500,6],[2,\"Marie\",200,4]]}}", "__typename": "QuestionNode" } } }