{ "data": { "question": { "questionId": "571", "questionFrontendId": "571", "boundTopicId": null, "title": "Find Median Given Frequency of Numbers", "titleSlug": "find-median-given-frequency-of-numbers", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Hard", "likes": 222, "dislikes": 64, "isLiked": null, "similarQuestions": "[{\"title\": \"Median Employee Salary\", \"titleSlug\": \"median-employee-salary\", \"difficulty\": \"Hard\", \"translatedTitle\": null}]", "exampleTestcases": "{\"headers\": {\"Numbers\": [\"num\", \"frequency\"]}, \"rows\": {\"Numbers\": [[0, 7], [1, 1], [2, 3], [3, 1]]}}", "categoryTitle": "Database", "contributors": [], "topicTags": [ { "name": "Database", "slug": "database", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"18.7K\", \"totalSubmission\": \"42.1K\", \"totalAcceptedRaw\": 18739, \"totalSubmissionRaw\": 42124, \"acRate\": \"44.5%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\": {\"Numbers\": [\"num\", \"frequency\"]}, \"rows\": {\"Numbers\": [[0, 7], [1, 1], [2, 3], [3, 1]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Numbers (num int, frequency int)\"\n ],\n \"mssql\": [\n \"Create table Numbers (num int, frequency int)\"\n ],\n \"oraclesql\": [\n \"Create table Numbers (num int, frequency int)\"\n ],\n \"database\": true\n}", "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, "enableTestMode": false, "enableDebugger": false, "envInfo": "{\"mysql\": [\"MySQL\", \"

MySQL 8.0.

\"], \"mssql\": [\"MS SQL Server\", \"

mssql server 2019.

\"], \"oraclesql\": [\"Oracle\", \"

Oracle Sql 11.2.

\"]}", "libraryUrl": null, "adminUrl": null, "challengeQuestion": null, "__typename": "QuestionNode" } } }