mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-13 19:31:42 +08:00
add leetcode problem-cn part3
This commit is contained in:
67
算法题(国内版)/originData/[no content]employee-bonus.json
Normal file
67
算法题(国内版)/originData/[no content]employee-bonus.json
Normal file
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "577",
|
||||
"questionFrontendId": "577",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 1998,
|
||||
"title": "Employee Bonus",
|
||||
"titleSlug": "employee-bonus",
|
||||
"content": null,
|
||||
"translatedTitle": "员工奖金",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Easy",
|
||||
"likes": 28,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[{\"title\": \"Combine Two Tables\", \"titleSlug\": \"combine-two-tables\", \"difficulty\": \"Easy\", \"translatedTitle\": \"\\u7ec4\\u5408\\u4e24\\u4e2a\\u8868\"}]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": "数据库",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"20.9K\", \"totalSubmission\": \"30.1K\", \"totalAcceptedRaw\": 20897, \"totalSubmissionRaw\": 30081, \"acRate\": \"69.5%\"}",
|
||||
"hints": [
|
||||
"If the EmpId in table Employee has no match in table Bonus, we consider that the corresponding bonus is null and null is smaller than 1000.",
|
||||
"Inner join is the default join, we can solve the mismatching problem by using outer join."
|
||||
],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Employee\":[\"empId\",\"name\",\"supervisor\",\"salary\"],\"Bonus\":[\"empId\",\"bonus\"]},\"rows\":{\"Employee\":[[3,\"Brad\",null,4000],[1,\"John\",3,1000],[2,\"Dan\",3,2000],[4,\"Thomas\",3,4000]],\"Bonus\":[[2,500],[4,2000]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Employee (empId int, name varchar(255), supervisor int, salary int)\",\n \"Create table If Not Exists Bonus (empId int, bonus int)\"\n ],\n \"mssql\": [\n \"Create table Employee (empId int, name varchar(255), supervisor int, salary int)\",\n \"Create table Bonus (empId int, bonus int)\"\n ],\n \"oraclesql\": [\n \"Create table Employee (empId int, name varchar(255), supervisor int, salary int)\",\n \"Create table Bonus (empId int, bonus int)\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Employee (empId int, name varchar(255), supervisor int, salary int)",
|
||||
"Create table If Not Exists Bonus (empId int, bonus int)",
|
||||
"Truncate table Employee",
|
||||
"insert into Employee (empId, name, supervisor, salary) values ('3', 'Brad', 'None', '4000')",
|
||||
"insert into Employee (empId, name, supervisor, salary) values ('1', 'John', '3', '1000')",
|
||||
"insert into Employee (empId, name, supervisor, salary) values ('2', 'Dan', '3', '2000')",
|
||||
"insert into Employee (empId, name, supervisor, salary) values ('4', 'Thomas', '3', '4000')",
|
||||
"Truncate table Bonus",
|
||||
"insert into Bonus (empId, bonus) values ('2', '500')",
|
||||
"insert into Bonus (empId, bonus) values ('4', '2000')"
|
||||
],
|
||||
"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\":[\"empId\",\"name\",\"supervisor\",\"salary\"],\"Bonus\":[\"empId\",\"bonus\"]},\"rows\":{\"Employee\":[[3,\"Brad\",null,4000],[1,\"John\",3,1000],[2,\"Dan\",3,2000],[4,\"Thomas\",3,4000]],\"Bonus\":[[2,500],[4,2000]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user