1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-10 18:48:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/originData/[no content]get-the-second-most-recent-activity.json

60 lines
4.5 KiB
JSON

{
"data": {
"question": {
"questionId": "1504",
"questionFrontendId": "1369",
"categoryTitle": "Database",
"boundTopicId": 134820,
"title": "Get the Second Most Recent Activity",
"titleSlug": "get-the-second-most-recent-activity",
"content": null,
"translatedTitle": "获取最近第二次的活动",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Hard",
"likes": 21,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"7.1K\", \"totalSubmission\": \"11.5K\", \"totalAcceptedRaw\": 7084, \"totalSubmissionRaw\": 11490, \"acRate\": \"61.7%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"UserActivity\":[\"username\",\"activity\",\"startDate\",\"endDate\"]},\"rows\":{\"UserActivity\":[[\"Alice\",\"Travel\",\"2020-02-12\",\"2020-02-20\"],[\"Alice\",\"Dancing\",\"2020-02-21\",\"2020-02-23\"],[\"Alice\",\"Travel\",\"2020-02-24\",\"2020-02-28\"],[\"Bob\",\"Travel\",\"2020-02-11\",\"2020-02-18\"]]}}",
"metaData": "{\"mysql\":[\"Create table If Not Exists UserActivity (username varchar(30), activity varchar(30), startDate date, endDate date)\"],\"mssql\":[\"Create table UserActivity (username varchar(30), activity varchar(30), startDate date, endDate date)\"],\"oraclesql\":[\"Create table UserActivity (username varchar(30), activity varchar(30), startDate date, endDate date)\",\"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\"],\"database\":true,\"name\":\"second_most_recent\",\"pythondata\":[\"UserActivity = pd.DataFrame([], columns=['username', 'activity', 'startDate', 'endDate']).astype({'username':'object', 'activity':'object', 'startDate':'datetime64[ns]', 'endDate':'datetime64[ns]'})\\n\"],\"postgresql\":[\"\\nCreate table If Not Exists UserActivity (username varchar(30), activity varchar(30), startDate date, endDate date)\"],\"database_schema\":{\"UserActivity\":{\"username\":\"VARCHAR(30)\",\"activity\":\"VARCHAR(30)\",\"startDate\":\"DATE\",\"endDate\":\"DATE\"}}}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists UserActivity (username varchar(30), activity varchar(30), startDate date, endDate date)",
"Truncate table UserActivity",
"insert into UserActivity (username, activity, startDate, endDate) values ('Alice', 'Travel', '2020-02-12', '2020-02-20')",
"insert into UserActivity (username, activity, startDate, endDate) values ('Alice', 'Dancing', '2020-02-21', '2020-02-23')",
"insert into UserActivity (username, activity, startDate, endDate) values ('Alice', 'Travel', '2020-02-24', '2020-02-28')",
"insert into UserActivity (username, activity, startDate, endDate) values ('Bob', 'Travel', '2020-02-11', '2020-02-18')"
],
"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\":{\"UserActivity\":[\"username\",\"activity\",\"startDate\",\"endDate\"]},\"rows\":{\"UserActivity\":[[\"Alice\",\"Travel\",\"2020-02-12\",\"2020-02-20\"],[\"Alice\",\"Dancing\",\"2020-02-21\",\"2020-02-23\"],[\"Alice\",\"Travel\",\"2020-02-24\",\"2020-02-28\"],[\"Bob\",\"Travel\",\"2020-02-11\",\"2020-02-18\"]]}}",
"__typename": "QuestionNode"
}
}
}