2022-03-27 18:27:43 +08:00
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"question": {
|
|
|
|
"questionId": "1564",
|
|
|
|
"questionFrontendId": "1435",
|
|
|
|
"boundTopicId": null,
|
|
|
|
"title": "Create a Session Bar Chart",
|
|
|
|
"titleSlug": "create-a-session-bar-chart",
|
|
|
|
"content": null,
|
|
|
|
"translatedTitle": null,
|
|
|
|
"translatedContent": null,
|
|
|
|
"isPaidOnly": true,
|
|
|
|
"difficulty": "Easy",
|
2022-05-02 23:44:12 +08:00
|
|
|
"likes": 112,
|
|
|
|
"dislikes": 194,
|
2022-03-27 18:27:43 +08:00
|
|
|
"isLiked": null,
|
|
|
|
"similarQuestions": "[{\"title\": \"Count Salary Categories\", \"titleSlug\": \"count-salary-categories\", \"difficulty\": \"Medium\", \"translatedTitle\": null}]",
|
|
|
|
"exampleTestcases": "{\"headers\": {\"Sessions\": [\"session_id\", \"duration\"]}, \"rows\": {\"Sessions\": [[1, 30], [2, 199], [3, 299], [4, 580], [5, 1000]]}}",
|
|
|
|
"categoryTitle": "Database",
|
|
|
|
"contributors": [],
|
|
|
|
"topicTags": [
|
|
|
|
{
|
|
|
|
"name": "Database",
|
|
|
|
"slug": "database",
|
|
|
|
"translatedName": null,
|
|
|
|
"__typename": "TopicTagNode"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"companyTagStats": null,
|
|
|
|
"codeSnippets": null,
|
2022-05-02 23:44:12 +08:00
|
|
|
"stats": "{\"totalAccepted\": \"15.8K\", \"totalSubmission\": \"20.2K\", \"totalAcceptedRaw\": 15832, \"totalSubmissionRaw\": 20242, \"acRate\": \"78.2%\"}",
|
2022-03-27 18:27:43 +08:00
|
|
|
"hints": [],
|
|
|
|
"solution": null,
|
|
|
|
"status": null,
|
|
|
|
"sampleTestCase": "{\"headers\": {\"Sessions\": [\"session_id\", \"duration\"]}, \"rows\": {\"Sessions\": [[1, 30], [2, 199], [3, 299], [4, 580], [5, 1000]]}}",
|
|
|
|
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Sessions (session_id int, duration int)\"\n ],\n \"mssql\": [\n \"Create table Sessions (session_id int, duration int)\"\n ],\n \"oraclesql\": [\n \"Create table Sessions (session_id int, duration int)\"\n ],\n \"database\": true\n}",
|
|
|
|
"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,
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|