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/originData/[no content]new-users-daily-count.json

68 lines
6.0 KiB
JSON

{
"data": {
"question": {
"questionId": "1204",
"questionFrontendId": "1107",
"boundTopicId": null,
"title": "New Users Daily Count",
"titleSlug": "new-users-daily-count",
"content": null,
"translatedTitle": null,
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 142,
"dislikes": 156,
"isLiked": null,
"similarQuestions": "[]",
"exampleTestcases": "{\"headers\":{\"Traffic\":[\"user_id\",\"activity\",\"activity_date\"]},\"rows\":{\"Traffic\":[[1,\"login\",\"2019-05-01\"],[1,\"homepage\",\"2019-05-01\"],[1,\"logout\",\"2019-05-01\"],[2,\"login\",\"2019-06-21\"],[2,\"logout\",\"2019-06-21\"],[3,\"login\",\"2019-01-01\"],[3,\"jobs\",\"2019-01-01\"],[3,\"logout\",\"2019-01-01\"],[4,\"login\",\"2019-06-21\"],[4,\"groups\",\"2019-06-21\"],[4,\"logout\",\"2019-06-21\"],[5,\"login\",\"2019-03-01\"],[5,\"logout\",\"2019-03-01\"],[5,\"login\",\"2019-06-21\"],[5,\"logout\",\"2019-06-21\"]]}}",
"categoryTitle": "Database",
"contributors": [],
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": null,
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"33.3K\", \"totalSubmission\": \"74.6K\", \"totalAcceptedRaw\": 33301, \"totalSubmissionRaw\": 74605, \"acRate\": \"44.6%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Traffic\":[\"user_id\",\"activity\",\"activity_date\"]},\"rows\":{\"Traffic\":[[1,\"login\",\"2019-05-01\"],[1,\"homepage\",\"2019-05-01\"],[1,\"logout\",\"2019-05-01\"],[2,\"login\",\"2019-06-21\"],[2,\"logout\",\"2019-06-21\"],[3,\"login\",\"2019-01-01\"],[3,\"jobs\",\"2019-01-01\"],[3,\"logout\",\"2019-01-01\"],[4,\"login\",\"2019-06-21\"],[4,\"groups\",\"2019-06-21\"],[4,\"logout\",\"2019-06-21\"],[5,\"login\",\"2019-03-01\"],[5,\"logout\",\"2019-03-01\"],[5,\"login\",\"2019-06-21\"],[5,\"logout\",\"2019-06-21\"]]}}",
"metaData": "{\"mysql\": [\"Create table If Not Exists Traffic (user_id int, activity ENUM('login', 'logout', 'jobs', 'groups', 'homepage'), activity_date date)\"], \"mssql\": [\"Create table Traffic (user_id int, activity VARCHAR(10) NOT NULL CHECK (activity IN ('login', 'logout', 'jobs', 'groups', 'homepage')), activity_date date)\"], \"oraclesql\": [\"Create table Traffic (user_id int, activity VARCHAR(10) NOT NULL CHECK (activity IN ('login', 'logout', 'jobs', 'groups', 'homepage')), activity_date date)\", \"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\"], \"database\": true, \"name\": \"new_users_daily_count\", \"pythondata\": [\"Traffic = pd.DataFrame([], columns=['user_id', 'activity', 'activity_date']).astype({'user_id':'Int64', 'activity':'object', 'activity_date':'datetime64[ns]'})\"], \"manual\": true, \"postgresql\": [\"Create table If Not Exists Traffic (user_id int, activity VARCHAR(30) CHECK (activity IN ('login', 'logout', 'jobs', 'groups', 'homepage')), activity_date date)\\n\"], \"database_schema\": {\"Traffic\": {\"user_id\": \"INT\", \"activity\": \"ENUM('login', 'logout', 'jobs', 'groups', 'homepage')\", \"activity_date\": \"DATE\"}}}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Traffic (user_id int, activity ENUM('login', 'logout', 'jobs', 'groups', 'homepage'), activity_date date)",
"Truncate table Traffic",
"insert into Traffic (user_id, activity, activity_date) values ('1', 'login', '2019-05-01')",
"insert into Traffic (user_id, activity, activity_date) values ('1', 'homepage', '2019-05-01')",
"insert into Traffic (user_id, activity, activity_date) values ('1', 'logout', '2019-05-01')",
"insert into Traffic (user_id, activity, activity_date) values ('2', 'login', '2019-06-21')",
"insert into Traffic (user_id, activity, activity_date) values ('2', 'logout', '2019-06-21')",
"insert into Traffic (user_id, activity, activity_date) values ('3', 'login', '2019-01-01')",
"insert into Traffic (user_id, activity, activity_date) values ('3', 'jobs', '2019-01-01')",
"insert into Traffic (user_id, activity, activity_date) values ('3', 'logout', '2019-01-01')",
"insert into Traffic (user_id, activity, activity_date) values ('4', 'login', '2019-06-21')",
"insert into Traffic (user_id, activity, activity_date) values ('4', 'groups', '2019-06-21')",
"insert into Traffic (user_id, activity, activity_date) values ('4', 'logout', '2019-06-21')",
"insert into Traffic (user_id, activity, activity_date) values ('5', 'login', '2019-03-01')",
"insert into Traffic (user_id, activity, activity_date) values ('5', 'logout', '2019-03-01')",
"insert into Traffic (user_id, activity, activity_date) values ('5', 'login', '2019-06-21')",
"insert into Traffic (user_id, activity, activity_date) values ('5', 'logout', '2019-06-21')"
],
"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>\"], \"pythondata\": [\"Pandas\", \"<p>Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0</p>\"], \"postgresql\": [\"PostgreSQL\", \"<p>PostgreSQL 16</p>\"]}",
"libraryUrl": null,
"adminUrl": null,
"challengeQuestion": null,
"__typename": "QuestionNode"
}
}
}