88
99<!-- problem:start -->
1010
11- # [ 3338. Second Highest Salary II 🔒] ( https://leetcode.cn/problems/second-highest-salary-ii )
11+ # [ 3338. 第二高的薪水 II 🔒] ( https://leetcode.cn/problems/second-highest-salary-ii )
1212
1313[ English Version] ( /solution/3300-3399/3338.Second%20Highest%20Salary%20II/README_EN.md )
1414
1515## 题目描述
1616
1717<!-- description:start -->
1818
19- <p >Table: <code >employees</code ></p >
19+ <p >表: <code >employees</code ></p >
2020
2121<pre >
2222+------------------+---------+
@@ -26,23 +26,24 @@ tags:
2626| salary | int |
2727| dept | varchar |
2828+------------------+---------+
29- emp_id is the unique key for this table.
30- Each row of this table contains information about an employee including their ID, name, manager, salary, department, start date, and building assignment.
29+ emp_id 是这张表的唯一主键。
30+ 这张表的每一行包含雇员信息,包括他们的 ID,薪水和部门。
3131</pre >
3232
33- <p >Write a solution to find the employees who earn the <strong >second-highest salary </strong > in each department. If <strong >multiple employees have the second-highest salary </strong >, < strong >include</ strong > < strong >all employees</ strong > with < strong >that salary</ strong >. </p >
33+ <p >编写一个解决方案来找到每个部门中 <strong >薪水第二高 </strong > 的雇员。如果 <strong >有多个雇员有第二高的薪水,在结果中包含所有获得该薪水的雇员 </strong >。 </p >
3434
35- <p >Return < em >the result table</ em > < em >ordered by</ em > < code >emp_id</code > <em >in</ em > < em >< strong >ascending </strong ></ em > < em >order</ em >. </p >
35+ <p >返回结果表以 & nbsp ; < code >emp_id</code > <strong >升序 & nbsp ; </strong >排序。 </p >
3636
37- <p >The result format is in the following example. </p >
37+ <p >结果格式如下所示。 </p >
3838
3939<p >  ; </p >
40- <p ><strong class =" example " >Example:</strong ></p >
40+
41+ <p ><strong class =" example " >示例:</strong ></p >
4142
4243<div class =" example-block " >
43- <p ><strong >Input: </strong ></p >
44+ <p ><strong >输入: </strong ></p >
4445
45- <p >employees table: </p >
46+ <p >employees 表: </p >
4647
4748<pre class =" example-io " >
4849+--------+--------+-----------+
@@ -61,7 +62,7 @@ Each row of this table contains information about an employee including their ID
6162+--------+--------+-----------+
6263</pre >
6364
64- <p ><strong >Output: </strong ></p >
65+ <p ><strong >输出: </strong ></p >
6566
6667<pre class =" example-io " >
6768+--------+-----------+
@@ -74,35 +75,35 @@ Each row of this table contains information about an employee including their ID
7475+--------+-----------+
7576</pre >
7677
77- <p ><strong >Explanation: </strong ></p >
78+ <p ><strong >解释: </strong ></p >
7879
7980<ul >
80- <li><strong>Sales Department</strong>:
81+ <li><b>销售部门:</b>
8182
8283 <ul>
83- <li>Highest salary is 90000 (emp_id: 4)</li>
84- <li>Second-highest salary is 80000 (emp_id: 2, 3)</li>
85- <li>Both employees with salary 80000 are included </li>
84+ <li>最高薪水为 90000 (emp_id: 4)</li>
85+ <li>第二高的薪水为 80000 (emp_id: 2, 3)</li>
86+ <li>两个薪水为 80000 的雇员都被包含 </li>
8687 </ul>
8788 </li>
88- <li><strong>IT Department </strong>:
89+ <li><strong>IT 部门: </strong>
8990 <ul>
90- <li>Highest salary is 65000 (emp_id: 6, 7)</li>
91- <li>Second-highest salary is 55000 (emp_id: 5)</li>
92- <li>Only emp_id 5 is included as they have the second-highest salary </li>
91+ <li>最高薪水为 65000 (emp_id: 6, 7)</li>
92+ <li>第二高的薪水为 55000 (emp_id: 5)</li>
93+ <li>只有 emp_id 为 5 的雇员被包含,因为他的薪水第二高 </li>
9394 </ul>
9495 </li>
95- <li><strong>Marketing Department</strong>:
96+ <li><b>市场部门:</b>
9697 <ul>
97- <li>Highest salary is 55000 (emp_id: 9)</li>
98- <li>Second-highest salary is 50000 (emp_id: 8)</li>
99- <li>Employee 8 is included </li>
98+ <li>最高薪水为 55000 (emp_id: 9)</li>
99+ <li>第二高的薪水为 50000 (emp_id: 8)</li>
100+ <li>雇员 8 被包含 </li>
100101 </ul>
101102 </li>
102- <li><strong>HR Department</strong>:
103+ <li><b>人力资源部门:</b>
103104 <ul>
104- <li>Only has one employee </li>
105- <li>Not included in the result as it has fewer than 2 employees </li>
105+ <li>只有一个雇员 </li>
106+ <li>因为少于 2 个雇员,所以没有包含在结果中 </li>
106107 </ul>
107108 </li>
108109
0 commit comments