mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-11 02:58:13 +08:00
73 lines
5.8 KiB
JSON
73 lines
5.8 KiB
JSON
{
|
|
"data": {
|
|
"question": {
|
|
"questionId": "3156",
|
|
"questionFrontendId": "2854",
|
|
"categoryTitle": "Database",
|
|
"boundTopicId": 2444194,
|
|
"title": "Rolling Average Steps",
|
|
"titleSlug": "rolling-average-steps",
|
|
"content": null,
|
|
"translatedTitle": "滚动平均步数",
|
|
"translatedContent": null,
|
|
"isPaidOnly": true,
|
|
"difficulty": "Medium",
|
|
"likes": 0,
|
|
"dislikes": 0,
|
|
"isLiked": null,
|
|
"similarQuestions": "[]",
|
|
"contributors": [],
|
|
"langToValidPlayground": null,
|
|
"topicTags": [
|
|
{
|
|
"name": "Database",
|
|
"slug": "database",
|
|
"translatedName": "数据库",
|
|
"__typename": "TopicTagNode"
|
|
}
|
|
],
|
|
"companyTagStats": null,
|
|
"codeSnippets": null,
|
|
"stats": "{\"totalAccepted\": \"191\", \"totalSubmission\": \"300\", \"totalAcceptedRaw\": 191, \"totalSubmissionRaw\": 300, \"acRate\": \"63.7%\"}",
|
|
"hints": [],
|
|
"solution": null,
|
|
"status": null,
|
|
"sampleTestCase": "{\"headers\": {\"Steps\": [\"user_id\", \"steps_count\", \"steps_date\"]}, \"rows\": {\"Steps\": [[1,687,\"2021-09-02\"],[1,395,\"2021-09-04\"],[1,499,\"2021-09-05\"],[1,712,\"2021-09-06\"],[1,576,\"2021-09-07\"],[2,153,\"2021-09-06\"],[2,171,\"2021-09-07\"],[2,530,\"2021-09-08\"],[3,945,\"2021-09-04\"],[3,120,\"2021-09-07\"],[3,557,\"2021-09-08\"],[3,840,\"2021-09-09\"],[3,627,\"2021-09-10\"],[5,382,\"2021-09-05\"],[6,480,\"2021-09-01\"],[6,191,\"2021-09-02\"],[6,303,\"2021-09-05\"]]}}",
|
|
"metaData": "{\"mysql\":[\"Create table if not exists Steps(user_id int, steps_count int, steps_date date)\"],\"mssql\":[\"Create table Steps(user_id int, steps_count int, steps_date date)\"],\"oraclesql\":[\"Create table Steps(user_id int, steps_count int, steps_date date)\",\"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\"],\"database\":true,\"name\":\"rolling_average\",\"pythondata\":[\"Steps = pd.DataFrame([], columns=['user_id', 'steps_count', 'steps_date']).astype({'user_id':'Int64', 'steps_count':'Int64', 'steps_date':'datetime64[ns]'})\"],\"postgresql\":[\"Create table if not exists Steps(user_id int, steps_count int, steps_date date)\"],\"database_schema\":{\"Steps\":{\"user_id\":\"INT\",\"steps_count\":\"INT\",\"steps_date\":\"DATE\"}}}",
|
|
"judgerAvailable": true,
|
|
"judgeType": "large",
|
|
"mysqlSchemas": [
|
|
"Create table if not exists Steps(user_id int, steps_count int, steps_date date)",
|
|
"Truncate table Steps",
|
|
"insert into Steps (user_id, steps_count, steps_date) values ('1', '687', '2021-09-02')",
|
|
"insert into Steps (user_id, steps_count, steps_date) values ('1', '395', '2021-09-04')",
|
|
"insert into Steps (user_id, steps_count, steps_date) values ('1', '499', '2021-09-05')",
|
|
"insert into Steps (user_id, steps_count, steps_date) values ('1', '712', '2021-09-06')",
|
|
"insert into Steps (user_id, steps_count, steps_date) values ('1', '576', '2021-09-07')",
|
|
"insert into Steps (user_id, steps_count, steps_date) values ('2', '153', '2021-09-06')",
|
|
"insert into Steps (user_id, steps_count, steps_date) values ('2', '171', '2021-09-07')",
|
|
"insert into Steps (user_id, steps_count, steps_date) values ('2', '530', '2021-09-08')",
|
|
"insert into Steps (user_id, steps_count, steps_date) values ('3', '945', '2021-09-04')",
|
|
"insert into Steps (user_id, steps_count, steps_date) values ('3', '120', '2021-09-07')",
|
|
"insert into Steps (user_id, steps_count, steps_date) values ('3', '557', '2021-09-08')",
|
|
"insert into Steps (user_id, steps_count, steps_date) values ('3', '840', '2021-09-09')",
|
|
"insert into Steps (user_id, steps_count, steps_date) values ('3', '627', '2021-09-10')",
|
|
"insert into Steps (user_id, steps_count, steps_date) values ('5', '382', '2021-09-05')",
|
|
"insert into Steps (user_id, steps_count, steps_date) values ('6', '480', '2021-09-01')",
|
|
"insert into Steps (user_id, steps_count, steps_date) values ('6', '191', '2021-09-02')",
|
|
"insert into Steps (user_id, steps_count, steps_date) values ('6', '303', '2021-09-05')"
|
|
],
|
|
"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\": {\"Steps\": [\"user_id\", \"steps_count\", \"steps_date\"]}, \"rows\": {\"Steps\": [[1,687,\"2021-09-02\"],[1,395,\"2021-09-04\"],[1,499,\"2021-09-05\"],[1,712,\"2021-09-06\"],[1,576,\"2021-09-07\"],[2,153,\"2021-09-06\"],[2,171,\"2021-09-07\"],[2,530,\"2021-09-08\"],[3,945,\"2021-09-04\"],[3,120,\"2021-09-07\"],[3,557,\"2021-09-08\"],[3,840,\"2021-09-09\"],[3,627,\"2021-09-10\"],[5,382,\"2021-09-05\"],[6,480,\"2021-09-01\"],[6,191,\"2021-09-02\"],[6,303,\"2021-09-05\"]]}}",
|
|
"__typename": "QuestionNode"
|
|
}
|
|
}
|
|
} |