mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-10 18:48:13 +08:00
61 lines
3.5 KiB
JSON
61 lines
3.5 KiB
JSON
{
|
|
"data": {
|
|
"question": {
|
|
"questionId": "1564",
|
|
"questionFrontendId": "1435",
|
|
"categoryTitle": "Database",
|
|
"boundTopicId": 229874,
|
|
"title": "Create a Session Bar Chart",
|
|
"titleSlug": "create-a-session-bar-chart",
|
|
"content": null,
|
|
"translatedTitle": "制作会话柱状图",
|
|
"translatedContent": null,
|
|
"isPaidOnly": true,
|
|
"difficulty": "Easy",
|
|
"likes": 39,
|
|
"dislikes": 0,
|
|
"isLiked": null,
|
|
"similarQuestions": "[]",
|
|
"contributors": [],
|
|
"langToValidPlayground": null,
|
|
"topicTags": [
|
|
{
|
|
"name": "Database",
|
|
"slug": "database",
|
|
"translatedName": "数据库",
|
|
"__typename": "TopicTagNode"
|
|
}
|
|
],
|
|
"companyTagStats": null,
|
|
"codeSnippets": null,
|
|
"stats": "{\"totalAccepted\": \"7.6K\", \"totalSubmission\": \"11.8K\", \"totalAcceptedRaw\": 7592, \"totalSubmissionRaw\": 11848, \"acRate\": \"64.1%\"}",
|
|
"hints": [],
|
|
"solution": null,
|
|
"status": null,
|
|
"sampleTestCase": "{\"headers\": {\"Sessions\": [\"session_id\", \"duration\"]}, \"rows\": {\"Sessions\": [[1, 30], [2, 199], [3, 299], [4, 580], [5, 1000]]}}",
|
|
"metaData": "{\"mysql\":[\"Create table If Not Exists Sessions (session_id int, duration int)\"],\"mssql\":[\"Create table Sessions (session_id int, duration int)\"],\"oraclesql\":[\"Create table Sessions (session_id int, duration int)\"],\"database\":true,\"name\":\"create_bar_chart\",\"pythondata\":[\"Sessions = pd.DataFrame([], columns=['session_id', 'duration']).astype({'session_id':'Int64', 'duration':'Int64'})\"],\"postgresql\":[\"\\nCreate table If Not Exists Sessions (session_id int, duration int)\"],\"database_schema\":{\"Sessions\":{\"session_id\":\"INT\",\"duration\":\"INT\"}}}",
|
|
"judgerAvailable": true,
|
|
"judgeType": "large",
|
|
"mysqlSchemas": [
|
|
"Create table If Not Exists Sessions (session_id int, duration int)",
|
|
"Truncate table Sessions",
|
|
"insert into Sessions (session_id, duration) values ('1', '30')",
|
|
"insert into Sessions (session_id, duration) values ('2', '199')",
|
|
"insert into Sessions (session_id, duration) values ('3', '299')",
|
|
"insert into Sessions (session_id, duration) values ('4', '580')",
|
|
"insert into Sessions (session_id, duration) values ('5', '1000')"
|
|
],
|
|
"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\": {\"Sessions\": [\"session_id\", \"duration\"]}, \"rows\": {\"Sessions\": [[1, 30], [2, 199], [3, 299], [4, 580], [5, 1000]]}}",
|
|
"__typename": "QuestionNode"
|
|
}
|
|
}
|
|
} |