mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-10 18:48:13 +08:00
62 lines
3.8 KiB
JSON
62 lines
3.8 KiB
JSON
{
|
|
"data": {
|
|
"question": {
|
|
"questionId": "2376",
|
|
"questionFrontendId": "2238",
|
|
"categoryTitle": "Database",
|
|
"boundTopicId": 1422071,
|
|
"title": "Number of Times a Driver Was a Passenger",
|
|
"titleSlug": "number-of-times-a-driver-was-a-passenger",
|
|
"content": null,
|
|
"translatedTitle": "司机成为乘客的次数",
|
|
"translatedContent": null,
|
|
"isPaidOnly": true,
|
|
"difficulty": "Medium",
|
|
"likes": 1,
|
|
"dislikes": 0,
|
|
"isLiked": null,
|
|
"similarQuestions": "[]",
|
|
"contributors": [],
|
|
"langToValidPlayground": null,
|
|
"topicTags": [
|
|
{
|
|
"name": "Database",
|
|
"slug": "database",
|
|
"translatedName": "数据库",
|
|
"__typename": "TopicTagNode"
|
|
}
|
|
],
|
|
"companyTagStats": null,
|
|
"codeSnippets": null,
|
|
"stats": "{\"totalAccepted\": \"1.4K\", \"totalSubmission\": \"2K\", \"totalAcceptedRaw\": 1399, \"totalSubmissionRaw\": 1996, \"acRate\": \"70.1%\"}",
|
|
"hints": [],
|
|
"solution": null,
|
|
"status": null,
|
|
"sampleTestCase": "{\"headers\":{\"Rides\":[\"ride_id\",\"driver_id\",\"passenger_id\"]},\"rows\":{\"Rides\":[[1,7,1],[2,7,2],[3,11,1],[4,11,7],[5,11,7],[6,11,3]]}}",
|
|
"metaData": "{\"mysql\":[\"Create table If Not Exists Rides (ride_id int, driver_id int, passenger_id int)\"],\"mssql\":[\"Create table Rides (ride_id int, driver_id int, passenger_id int)\"],\"oraclesql\":[\"Create table Rides (ride_id int, driver_id int, passenger_id int)\"],\"database\":true,\"name\":\"driver_passenger\",\"pythondata\":[\"Rides = pd.DataFrame([], columns=['ride_id', 'driver_id', 'passenger_id']).astype({'ride_id':'Int64', 'driver_id':'Int64', 'passenger_id':'Int64'})\"],\"postgresql\":[\"Create table If Not Exists Rides (ride_id int, driver_id int, passenger_id int)\"],\"database_schema\":{\"Rides\":{\"ride_id\":\"INT\",\"driver_id\":\"INT\",\"passenger_id\":\"INT\"}}}",
|
|
"judgerAvailable": true,
|
|
"judgeType": "large",
|
|
"mysqlSchemas": [
|
|
"Create table If Not Exists Rides (ride_id int, driver_id int, passenger_id int)",
|
|
"Truncate table Rides",
|
|
"insert into Rides (ride_id, driver_id, passenger_id) values ('1', '7', '1')",
|
|
"insert into Rides (ride_id, driver_id, passenger_id) values ('2', '7', '2')",
|
|
"insert into Rides (ride_id, driver_id, passenger_id) values ('3', '11', '1')",
|
|
"insert into Rides (ride_id, driver_id, passenger_id) values ('4', '11', '7')",
|
|
"insert into Rides (ride_id, driver_id, passenger_id) values ('5', '11', '7')",
|
|
"insert into Rides (ride_id, driver_id, passenger_id) values ('6', '11', '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>\"],\"postgresql\":[\"PostgreSQL\",\"<p>PostgreSQL 16<\\/p>\"]}",
|
|
"book": null,
|
|
"isSubscribed": false,
|
|
"isDailyQuestion": false,
|
|
"dailyRecordStatus": null,
|
|
"editorType": "CKEDITOR",
|
|
"ugcQuestionId": null,
|
|
"style": "LEETCODE",
|
|
"exampleTestcases": "{\"headers\":{\"Rides\":[\"ride_id\",\"driver_id\",\"passenger_id\"]},\"rows\":{\"Rides\":[[1,7,1],[2,7,2],[3,11,1],[4,11,7],[5,11,7],[6,11,3]]}}",
|
|
"__typename": "QuestionNode"
|
|
}
|
|
}
|
|
} |