1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-11 02:58:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/originData/[no content]the-number-of-passengers-in-each-bus-i.json

65 lines
4.4 KiB
JSON
Raw Normal View History

2022-03-27 20:38:29 +08:00
{
"data": {
"question": {
"questionId": "2281",
"questionFrontendId": "2142",
"categoryTitle": "Database",
"boundTopicId": 1215627,
"title": "The Number of Passengers in Each Bus I",
"titleSlug": "the-number-of-passengers-in-each-bus-i",
"content": null,
2023-12-09 18:42:21 +08:00
"translatedTitle": "每辆车的乘客人数 I",
2022-03-27 20:38:29 +08:00
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
2023-12-09 18:42:21 +08:00
"likes": 3,
2022-03-27 20:38:29 +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\": \"1.6K\", \"totalSubmission\": \"3.6K\", \"totalAcceptedRaw\": 1638, \"totalSubmissionRaw\": 3561, \"acRate\": \"46.0%\"}",
2022-03-27 20:38:29 +08:00
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Buses\":[\"bus_id\",\"arrival_time\"],\"Passengers\":[\"passenger_id\",\"arrival_time\"]},\"rows\":{\"Buses\":[[1,2],[2,4],[3,7]],\"Passengers\":[[11,1],[12,5],[13,6],[14,7]]}}",
2023-12-09 18:42:21 +08:00
"metaData": "{\"mysql\":[\"Create table If Not Exists Buses (bus_id int, arrival_time int)\",\"Create table If Not Exists Passengers (passenger_id int, arrival_time int)\"],\"mssql\":[\"Create table Buses (bus_id int, arrival_time int)\",\"Create table Passengers (passenger_id int, arrival_time int)\"],\"oraclesql\":[\"Create table Buses (bus_id int, arrival_time int)\",\"Create table Passengers (passenger_id int, arrival_time int)\"],\"database\":true,\"name\":\"count_passengers_in_bus\",\"pythondata\":[\"Buses = pd.DataFrame([], columns=['bus_id', 'arrival_time']).astype({'bus_id':'Int64', 'arrival_time':'Int64'})\",\"Passengers = pd.DataFrame([], columns=['passenger_id', 'arrival_time']).astype({'passenger_id':'Int64', 'arrival_time':'Int64'})\"],\"postgresql\":[\"Create table If Not Exists Buses (bus_id int, arrival_time int)\",\"Create table If Not Exists Passengers (passenger_id int, arrival_time int)\"],\"database_schema\":{\"Buses\":{\"bus_id\":\"INT\",\"arrival_time\":\"INT\"},\"Passengers\":{\"passenger_id\":\"INT\",\"arrival_time\":\"INT\"}}}",
2022-03-27 20:38:29 +08:00
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Buses (bus_id int, arrival_time int)",
"Create table If Not Exists Passengers (passenger_id int, arrival_time int)",
"Truncate table Buses",
"insert into Buses (bus_id, arrival_time) values ('1', '2')",
"insert into Buses (bus_id, arrival_time) values ('2', '4')",
"insert into Buses (bus_id, arrival_time) values ('3', '7')",
"Truncate table Passengers",
"insert into Passengers (passenger_id, arrival_time) values ('11', '1')",
"insert into Passengers (passenger_id, arrival_time) values ('12', '5')",
"insert into Passengers (passenger_id, arrival_time) values ('13', '6')",
"insert into Passengers (passenger_id, arrival_time) values ('14', '7')"
],
"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>\"],\"postgresql\":[\"PostgreSQL\",\"<p>PostgreSQL 16<\\/p>\"]}",
2022-03-27 20:38:29 +08:00
"book": null,
"isSubscribed": false,
"isDailyQuestion": false,
"dailyRecordStatus": null,
"editorType": "CKEDITOR",
"ugcQuestionId": null,
"style": "LEETCODE",
"exampleTestcases": "{\"headers\":{\"Buses\":[\"bus_id\",\"arrival_time\"],\"Passengers\":[\"passenger_id\",\"arrival_time\"]},\"rows\":{\"Buses\":[[1,2],[2,4],[3,7]],\"Passengers\":[[11,1],[12,5],[13,6],[14,7]]}}",
"__typename": "QuestionNode"
}
}
}