{ "data": { "question": { "questionId": "571", "questionFrontendId": "571", "categoryTitle": "Database", "boundTopicId": 2651, "title": "Find Median Given Frequency of Numbers", "titleSlug": "find-median-given-frequency-of-numbers", "content": null, "translatedTitle": "给定数字的频率查询中位数", "translatedContent": null, "isPaidOnly": true, "difficulty": "Hard", "likes": 109, "dislikes": 0, "isLiked": null, "similarQuestions": "[{\"title\": \"Median Employee Salary\", \"titleSlug\": \"median-employee-salary\", \"difficulty\": \"Hard\", \"translatedTitle\": \"\\u5458\\u5de5\\u85aa\\u6c34\\u4e2d\\u4f4d\\u6570\", \"isPaidOnly\": true}]", "contributors": [], "langToValidPlayground": null, "topicTags": [ { "name": "Database", "slug": "database", "translatedName": "数据库", "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"14.5K\", \"totalSubmission\": \"31K\", \"totalAcceptedRaw\": 14494, \"totalSubmissionRaw\": 30983, \"acRate\": \"46.8%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\": {\"Numbers\": [\"num\", \"frequency\"]}, \"rows\": {\"Numbers\": [[0, 7], [1, 1], [2, 3], [3, 1]]}}", "metaData": "{\"mysql\":[\"Create table If Not Exists Numbers (num int, frequency int)\"],\"mssql\":[\"Create table Numbers (num int, frequency int)\"],\"oraclesql\":[\"Create table Numbers (num int, frequency int)\"],\"database\":true,\"name\":\"median_frequency\",\"pythondata\":[\"Numbers = pd.DataFrame([], columns=['num', 'frequency']).astype({'num':'Int64', 'frequency':'Int64'})\"],\"postgresql\":[\"\\nCreate table If Not Exists Numbers (num int, frequency int)\"],\"database_schema\":{\"Numbers\":{\"num\":\"INT\",\"frequency\":\"INT\"}}}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Numbers (num int, frequency int)", "Truncate table Numbers", "insert into Numbers (num, frequency) values ('0', '7')", "insert into Numbers (num, frequency) values ('1', '1')", "insert into Numbers (num, frequency) values ('2', '3')", "insert into Numbers (num, frequency) values ('3', '1')" ], "enableRunCode": true, "envInfo": "{\"mysql\":[\"MySQL\",\"
\\u7248\\u672c\\uff1a mssql server 2019.<\\/p>\"],\"oraclesql\":[\"Oracle\",\" Oracle Sql 11.2.<\\/p>\"],\"pythondata\":[\"Pandas\",\" Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0<\\/p>\"],\"postgresql\":[\"PostgreSQL\",\" PostgreSQL 16<\\/p>\"]}",
"book": null,
"isSubscribed": false,
"isDailyQuestion": false,
"dailyRecordStatus": null,
"editorType": "CKEDITOR",
"ugcQuestionId": null,
"style": "LEETCODE",
"exampleTestcases": "{\"headers\": {\"Numbers\": [\"num\", \"frequency\"]}, \"rows\": {\"Numbers\": [[0, 7], [1, 1], [2, 3], [3, 1]]}}",
"__typename": "QuestionNode"
}
}
}MySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"