mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-10 18:48:13 +08:00
68 lines
5.3 KiB
JSON
68 lines
5.3 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": 109,
|
|
"dislikes": 111,
|
|
"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\": \"24.8K\", \"totalSubmission\": \"54.1K\", \"totalAcceptedRaw\": 24751, \"totalSubmissionRaw\": 54099, \"acRate\": \"45.8%\"}",
|
|
"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": "{\n \"mysql\": [\n \"Create table If Not Exists Traffic (user_id int, activity ENUM('login', 'logout', 'jobs', 'groups', 'homepage'), activity_date date)\"\n ],\n \"mssql\": [\n \"Create table Traffic (user_id int, activity VARCHAR(10) NOT NULL CHECK (activity IN ('login', 'logout', 'jobs', 'groups', 'homepage')), activity_date date)\"\n ],\n \"oraclesql\": [\n \"Create table Traffic (user_id int, activity VARCHAR(10) NOT NULL CHECK (activity IN ('login', 'logout', 'jobs', 'groups', 'homepage')), activity_date date)\",\n \"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\"\n ],\n \"database\": true\n}",
|
|
"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>\"]}",
|
|
"libraryUrl": null,
|
|
"adminUrl": null,
|
|
"challengeQuestion": null,
|
|
"__typename": "QuestionNode"
|
|
}
|
|
}
|
|
} |