2022-03-27 18:27:43 +08:00
{
"data" : {
"question" : {
"questionId" : "1852" ,
"questionFrontendId" : "1709" ,
"boundTopicId" : null ,
"title" : "Biggest Window Between Visits" ,
"titleSlug" : "biggest-window-between-visits" ,
"content" : null ,
"translatedTitle" : null ,
"translatedContent" : null ,
"isPaidOnly" : true ,
"difficulty" : "Medium" ,
2023-12-09 18:42:21 +08:00
"likes" : 193 ,
"dislikes" : 13 ,
2022-03-27 18:27:43 +08:00
"isLiked" : null ,
2022-05-02 23:44:12 +08:00
"similarQuestions" : "[{\"title\": \"Users With Two Purchases Within Seven Days\", \"titleSlug\": \"users-with-two-purchases-within-seven-days\", \"difficulty\": \"Medium\", \"translatedTitle\": null}]" ,
2022-03-27 18:27:43 +08:00
"exampleTestcases" : "{\"headers\":{\"UserVisits\":[\"user_id\",\"visit_date\"]},\"rows\":{\"UserVisits\":[[\"1\",\"2020-11-28\"],[\"1\",\"2020-10-20\"],[\"1\",\"2020-12-3\"],[\"2\",\"2020-10-5\"],[\"2\",\"2020-12-9\"],[\"3\",\"2020-11-11\"]]}}" ,
"categoryTitle" : "Database" ,
"contributors" : [ ] ,
"topicTags" : [
{
"name" : "Database" ,
"slug" : "database" ,
"translatedName" : null ,
"__typename" : "TopicTagNode"
}
] ,
"companyTagStats" : null ,
"codeSnippets" : null ,
2023-12-09 19:57:46 +08:00
"stats" : "{\"totalAccepted\": \"19.8K\", \"totalSubmission\": \"27.6K\", \"totalAcceptedRaw\": 19782, \"totalSubmissionRaw\": 27577, \"acRate\": \"71.7%\"}" ,
2022-03-27 18:27:43 +08:00
"hints" : [ ] ,
2023-12-09 18:42:21 +08:00
"solution" : {
"id" : "2199" ,
"canSeeDetail" : true ,
"paidOnly" : false ,
"hasVideoSolution" : false ,
"paidOnlyVideo" : true ,
"__typename" : "ArticleNode"
} ,
2022-03-27 18:27:43 +08:00
"status" : null ,
"sampleTestCase" : "{\"headers\":{\"UserVisits\":[\"user_id\",\"visit_date\"]},\"rows\":{\"UserVisits\":[[\"1\",\"2020-11-28\"],[\"1\",\"2020-10-20\"],[\"1\",\"2020-12-3\"],[\"2\",\"2020-10-5\"],[\"2\",\"2020-12-9\"],[\"3\",\"2020-11-11\"]]}}" ,
2023-12-09 18:42:21 +08:00
"metaData" : "{\"mysql\": [\"Create table If Not Exists UserVisits(user_id int, visit_date date)\"], \"mssql\": [\"Create table UserVisits(user_id int, visit_date date)\"], \"oraclesql\": [\"Create table UserVisits(user_id int, visit_date date)\", \"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\"], \"database\": true, \"name\": \"biggest_window\", \"pythondata\": [\"UserVisits = pd.DataFrame([], columns=['user_id', 'visit_date']).astype({'user_id':'Int64', 'visit_date':'datetime64[ns]'})\"], \"postgresql\": [\"\\nCreate table If Not Exists UserVisits(user_id int, visit_date date)\"], \"database_schema\": {\"UserVisits\": {\"user_id\": \"INT\", \"visit_date\": \"DATE\"}}}" ,
2022-03-27 18:27:43 +08:00
"judgerAvailable" : true ,
"judgeType" : "large" ,
"mysqlSchemas" : [
"Create table If Not Exists UserVisits(user_id int, visit_date date)" ,
"Truncate table UserVisits" ,
"insert into UserVisits (user_id, visit_date) values ('1', '2020-11-28')" ,
"insert into UserVisits (user_id, visit_date) values ('1', '2020-10-20')" ,
"insert into UserVisits (user_id, visit_date) values ('1', '2020-12-3')" ,
"insert into UserVisits (user_id, visit_date) values ('2', '2020-10-5')" ,
"insert into UserVisits (user_id, visit_date) values ('2', '2020-12-9')" ,
"insert into UserVisits (user_id, visit_date) values ('3', '2020-11-11')"
] ,
"enableRunCode" : true ,
"enableTestMode" : false ,
"enableDebugger" : false ,
2023-12-09 18:42:21 +08:00
"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>\"], \"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 18:27:43 +08:00
"libraryUrl" : null ,
"adminUrl" : null ,
"challengeQuestion" : null ,
"__typename" : "QuestionNode"
}
}
}