1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-26 02:00:27 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/originData/[no content]flight-occupancy-and-waitlist-analysis.json
2023-08-11 23:36:00 +08:00

68 lines
4.5 KiB
JSON

{
"data": {
"question": {
"questionId": "3002",
"questionFrontendId": "2783",
"categoryTitle": "Database",
"boundTopicId": 2352589,
"title": "Flight Occupancy and Waitlist Analysis",
"titleSlug": "flight-occupancy-and-waitlist-analysis",
"content": null,
"translatedTitle": "航班入座率和等待名单分析",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 0,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"75\", \"totalSubmission\": \"170\", \"totalAcceptedRaw\": 75, \"totalSubmissionRaw\": 170, \"acRate\": \"44.1%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Flights\":[\"flight_id\",\"capacity\"],\"Passengers\":[\"passenger_id\",\"flight_id\"]},\"rows\":{\"Flights\":[[1,2],[2,2],[3,1]],\"Passengers\":[[101,1],[102,1],[103,1],[104,2],[105,2],[106,3],[107,3]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table if not exists Flights(flight_id int,capacity int)\",\n \"Create table if not exists Passengers (passenger_id int,flight_id int)\"\n ],\n \"mssql\": [\n \"Create table Flights(flight_id int,capacity int)\",\n \"Create table Passengers (passenger_id int,flight_id int)\"\n ],\n \"oraclesql\": [\n \"Create table Flights(flight_id int,capacity int)\",\n \"Create table Passengers (passenger_id int,flight_id int)\"\n ],\n \"database\": true,\n \"name\": \"waitlist_analysis\",\n \"pythondata\": [\n \"Flights = pd.DataFrame([], columns=['flight_id', 'capacity']).astype({'flight_id':'Int64', 'capacity':'Int64'})\",\n \"Passengers = pd.DataFrame([], columns=['passenger_id', 'flight_id']).astype({'passenger_id':'Int64', 'flight_id':'Int64'})\"\n ]\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table if not exists Flights(flight_id int,capacity int)",
"Create table if not exists Passengers (passenger_id int,flight_id int)",
"Truncate table Flights",
"insert into Flights (flight_id, capacity) values ('1', '2')",
"insert into Flights (flight_id, capacity) values ('2', '2')",
"insert into Flights (flight_id, capacity) values ('3', '1')",
"Truncate table Passengers",
"insert into Passengers (passenger_id, flight_id) values ('101', '1')",
"insert into Passengers (passenger_id, flight_id) values ('102', '1')",
"insert into Passengers (passenger_id, flight_id) values ('103', '1')",
"insert into Passengers (passenger_id, flight_id) values ('104', '2')",
"insert into Passengers (passenger_id, flight_id) values ('105', '2')",
"insert into Passengers (passenger_id, flight_id) values ('106', '3')",
"insert into Passengers (passenger_id, flight_id) values ('107', '3')"
],
"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>\"],\"pythondata\":[\"Pandas\",\"<p>Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0<\\/p>\"]}",
"book": null,
"isSubscribed": false,
"isDailyQuestion": false,
"dailyRecordStatus": null,
"editorType": "CKEDITOR",
"ugcQuestionId": null,
"style": "LEETCODE",
"exampleTestcases": "{\"headers\":{\"Flights\":[\"flight_id\",\"capacity\"],\"Passengers\":[\"passenger_id\",\"flight_id\"]},\"rows\":{\"Flights\":[[1,2],[2,2],[3,1]],\"Passengers\":[[101,1],[102,1],[103,1],[104,2],[105,2],[106,3],[107,3]]}}",
"__typename": "QuestionNode"
}
}
}