mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-11 02:58:13 +08:00
63 lines
4.1 KiB
JSON
63 lines
4.1 KiB
JSON
{
|
|
"data": {
|
|
"question": {
|
|
"questionId": "1958",
|
|
"questionFrontendId": "1809",
|
|
"boundTopicId": null,
|
|
"title": "Ad-Free Sessions",
|
|
"titleSlug": "ad-free-sessions",
|
|
"content": null,
|
|
"translatedTitle": null,
|
|
"translatedContent": null,
|
|
"isPaidOnly": true,
|
|
"difficulty": "Easy",
|
|
"likes": 49,
|
|
"dislikes": 31,
|
|
"isLiked": null,
|
|
"similarQuestions": "[]",
|
|
"exampleTestcases": "{\"headers\":{\"Playback\":[\"session_id\",\"customer_id\",\"start_time\",\"end_time\"],\"Ads\":[\"ad_id\",\"customer_id\",\"timestamp\"]},\"rows\":{\"Playback\":[[1,1,1,5],[2,1,15,23],[3,2,10,12],[4,2,17,28],[5,2,2,8]],\"Ads\":[[1,1,5],[2,2,17],[3,2,20]]}}",
|
|
"categoryTitle": "Database",
|
|
"contributors": [],
|
|
"topicTags": [
|
|
{
|
|
"name": "Database",
|
|
"slug": "database",
|
|
"translatedName": null,
|
|
"__typename": "TopicTagNode"
|
|
}
|
|
],
|
|
"companyTagStats": null,
|
|
"codeSnippets": null,
|
|
"stats": "{\"totalAccepted\": \"8.8K\", \"totalSubmission\": \"14.7K\", \"totalAcceptedRaw\": 8774, \"totalSubmissionRaw\": 14661, \"acRate\": \"59.8%\"}",
|
|
"hints": [],
|
|
"solution": null,
|
|
"status": null,
|
|
"sampleTestCase": "{\"headers\":{\"Playback\":[\"session_id\",\"customer_id\",\"start_time\",\"end_time\"],\"Ads\":[\"ad_id\",\"customer_id\",\"timestamp\"]},\"rows\":{\"Playback\":[[1,1,1,5],[2,1,15,23],[3,2,10,12],[4,2,17,28],[5,2,2,8]],\"Ads\":[[1,1,5],[2,2,17],[3,2,20]]}}",
|
|
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Playback(session_id int,customer_id int,start_time int,end_time int)\",\n \"Create table If Not Exists Ads (ad_id int, customer_id int, timestamp int)\"\n ],\n \"mssql\": [\n \"Create table Playback(session_id int,customer_id int,start_time int,end_time int)\",\n \"Create table Ads (ad_id int, customer_id int, timestamp int)\"\n ],\n \"oraclesql\": [\n \"Create table Playback(session_id int,customer_id int,start_time int,end_time int)\",\n \"Create table Ads (ad_id int, customer_id int, timestamp int)\"\n ],\n \"database\": true\n}",
|
|
"judgerAvailable": true,
|
|
"judgeType": "large",
|
|
"mysqlSchemas": [
|
|
"Create table If Not Exists Playback(session_id int,customer_id int,start_time int,end_time int)",
|
|
"Create table If Not Exists Ads (ad_id int, customer_id int, timestamp int)",
|
|
"Truncate table Playback",
|
|
"insert into Playback (session_id, customer_id, start_time, end_time) values ('1', '1', '1', '5')",
|
|
"insert into Playback (session_id, customer_id, start_time, end_time) values ('2', '1', '15', '23')",
|
|
"insert into Playback (session_id, customer_id, start_time, end_time) values ('3', '2', '10', '12')",
|
|
"insert into Playback (session_id, customer_id, start_time, end_time) values ('4', '2', '17', '28')",
|
|
"insert into Playback (session_id, customer_id, start_time, end_time) values ('5', '2', '2', '8')",
|
|
"Truncate table Ads",
|
|
"insert into Ads (ad_id, customer_id, timestamp) values ('1', '1', '5')",
|
|
"insert into Ads (ad_id, customer_id, timestamp) values ('2', '2', '17')",
|
|
"insert into Ads (ad_id, customer_id, timestamp) values ('3', '2', '20')"
|
|
],
|
|
"enableRunCode": true,
|
|
"enableTestMode": false,
|
|
"enableDebugger": false,
|
|
"envInfo": "{\"mysql\": [\"MySQL\", \"<p><code>MySQL 8.0</code>.</p>\"], \"mssql\": [\"MS SQL Server\", \"<p><code>mssql server 2019</code>.</p>\"], \"oraclesql\": [\"Oracle\", \"<p><code>Oracle Sql 11.2</code>.</p>\"]}",
|
|
"libraryUrl": null,
|
|
"adminUrl": null,
|
|
"challengeQuestion": null,
|
|
"__typename": "QuestionNode"
|
|
}
|
|
}
|
|
} |