mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-13 11:21:42 +08:00
add leetcode problem-cn part3
This commit is contained in:
77
算法题(国内版)/originData/[no content]median-employee-salary.json
Normal file
77
算法题(国内版)/originData/[no content]median-employee-salary.json
Normal file
@@ -0,0 +1,77 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "569",
|
||||
"questionFrontendId": "569",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 2653,
|
||||
"title": "Median Employee Salary",
|
||||
"titleSlug": "median-employee-salary",
|
||||
"content": null,
|
||||
"translatedTitle": "员工薪水中位数",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Hard",
|
||||
"likes": 88,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[{\"title\": \"Find Median Given Frequency of Numbers\", \"titleSlug\": \"find-median-given-frequency-of-numbers\", \"difficulty\": \"Hard\", \"translatedTitle\": \"\\u7ed9\\u5b9a\\u6570\\u5b57\\u7684\\u9891\\u7387\\u67e5\\u8be2\\u4e2d\\u4f4d\\u6570\"}]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": "数据库",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"13.1K\", \"totalSubmission\": \"23.2K\", \"totalAcceptedRaw\": 13112, \"totalSubmissionRaw\": 23159, \"acRate\": \"56.6%\"}",
|
||||
"hints": [
|
||||
"Still remember how to select the sum which group by one column?",
|
||||
"Try to think about how to get the median from a sorted list.",
|
||||
"How to get the median one item for odd number list while how to get the median two items for even number list, try to unify them."
|
||||
],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\": {\"Employee\": [\"id\", \"company\", \"salary\"]}, \"rows\": {\"Employee\": [[1, \"A\", 2341],[2, \"A\", 341],[3, \"A\", 15],[4, \"A\", 15314],[5, \"A\", 451],[6, \"A\", 513],[7, \"B\", 15],[8, \"B\", 13],[9, \"B\", 1154],[10, \"B\", 1345],[11, \"B\", 1221],[12, \"B\", 234],[13, \"C\", 2345],[14, \"C\", 2645],[15, \"C\", 2645],[16, \"C\", 2652],[17, \"C\", 65]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Employee (id int, company varchar(255), salary int)\"\n ],\n \"mssql\": [\n \"Create table Employee (id int, company varchar(255), salary int)\"\n ],\n \"oraclesql\": [\n \"Create table Employee (id int, company varchar(255), salary int)\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Employee (id int, company varchar(255), salary int)",
|
||||
"Truncate table Employee",
|
||||
"insert into Employee (id, company, salary) values ('1', 'A', '2341')",
|
||||
"insert into Employee (id, company, salary) values ('2', 'A', '341')",
|
||||
"insert into Employee (id, company, salary) values ('3', 'A', '15')",
|
||||
"insert into Employee (id, company, salary) values ('4', 'A', '15314')",
|
||||
"insert into Employee (id, company, salary) values ('5', 'A', '451')",
|
||||
"insert into Employee (id, company, salary) values ('6', 'A', '513')",
|
||||
"insert into Employee (id, company, salary) values ('7', 'B', '15')",
|
||||
"insert into Employee (id, company, salary) values ('8', 'B', '13')",
|
||||
"insert into Employee (id, company, salary) values ('9', 'B', '1154')",
|
||||
"insert into Employee (id, company, salary) values ('10', 'B', '1345')",
|
||||
"insert into Employee (id, company, salary) values ('11', 'B', '1221')",
|
||||
"insert into Employee (id, company, salary) values ('12', 'B', '234')",
|
||||
"insert into Employee (id, company, salary) values ('13', 'C', '2345')",
|
||||
"insert into Employee (id, company, salary) values ('14', 'C', '2645')",
|
||||
"insert into Employee (id, company, salary) values ('15', 'C', '2645')",
|
||||
"insert into Employee (id, company, salary) values ('16', 'C', '2652')",
|
||||
"insert into Employee (id, company, salary) values ('17', 'C', '65')"
|
||||
],
|
||||
"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>\"]}",
|
||||
"book": null,
|
||||
"isSubscribed": false,
|
||||
"isDailyQuestion": false,
|
||||
"dailyRecordStatus": null,
|
||||
"editorType": "CKEDITOR",
|
||||
"ugcQuestionId": null,
|
||||
"style": "LEETCODE",
|
||||
"exampleTestcases": "{\"headers\": {\"Employee\": [\"id\", \"company\", \"salary\"]}, \"rows\": {\"Employee\": [[1, \"A\", 2341],[2, \"A\", 341],[3, \"A\", 15],[4, \"A\", 15314],[5, \"A\", 451],[6, \"A\", 513],[7, \"B\", 15],[8, \"B\", 13],[9, \"B\", 1154],[10, \"B\", 1345],[11, \"B\", 1221],[12, \"B\", 234],[13, \"C\", 2345],[14, \"C\", 2645],[15, \"C\", 2645],[16, \"C\", 2652],[17, \"C\", 65]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user