2022-03-27 20:46:41 +08:00
{
"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" ,
2023-12-09 18:42:21 +08:00
"likes" : 109 ,
2022-03-27 20:46:41 +08:00
"dislikes" : 0 ,
"isLiked" : null ,
2023-12-09 18:42:21 +08:00
"similarQuestions" : "[{\"title\": \"Median Employee Salary\", \"titleSlug\": \"median-employee-salary\", \"difficulty\": \"Hard\", \"translatedTitle\": \"\\u5458\\u5de5\\u85aa\\u6c34\\u4e2d\\u4f4d\\u6570\", \"isPaidOnly\": true}]" ,
2022-03-27 20:46:41 +08:00
"contributors" : [ ] ,
"langToValidPlayground" : null ,
"topicTags" : [
{
"name" : "Database" ,
"slug" : "database" ,
"translatedName" : "数据库" ,
"__typename" : "TopicTagNode"
}
] ,
"companyTagStats" : null ,
"codeSnippets" : null ,
2023-12-09 18:42:21 +08:00
"stats" : "{\"totalAccepted\": \"14.5K\", \"totalSubmission\": \"31K\", \"totalAcceptedRaw\": 14494, \"totalSubmissionRaw\": 30983, \"acRate\": \"46.8%\"}" ,
2022-03-27 20:46:41 +08:00
"hints" : [ ] ,
"solution" : null ,
"status" : null ,
2023-12-09 18:42:21 +08:00
"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\"}}}" ,
2022-03-27 20:46:41 +08:00
"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 ,
2023-12-09 18:42:21 +08:00
"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>\"]}" ,
2022-03-27 20:46:41 +08:00
"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"
}
}
}