标签归档:leetcode

RSS feed of leetcode

[LeetCode]Employee Bonus

题目描述:

LeetCode 577. Employee Bonus

Select all employee's name and bonus whose bonus is < 1000.

Table:Employee

+-------+--------+-----------+--------+
| empId |  name  | supervisor| salary |
+-------+--------+-----------+--------+
|   1   | John   |  3        | 1000   |
|   2   | Dan    |  3        | 2000   |
|   3   | Brad   |  null     | 4000   |
|   4   | Thomas |  3        | 4000   |
+-------+--------+-----------+--------+
empId is ...

继续阅读

[LeetCode]Find Median Given Frequency of Numbers

题目描述:

LeetCode 571. Find Median Given Frequency of Numbers

The Numbers table keeps the value of number and its frequency.

+----------+-------------+
|  Number  |  Frequency  |
+----------+-------------|
|  0       |  7          |
|  1       |  1          |
|  2       |  3          |
|  3       |  1          |
+----------+-------------+

In this table, the numbers are 0, 0, 0, 0 ...

继续阅读

LeetCode Weekly Contest 30解题报告

LeetCode Weekly Contest 30是LeetCode举办的第三十五场正式周赛,共4道题目,比赛时长1.5小时。

比赛链接:https://leetcode.com/contest/leetcode-weekly-contest-30/

题解列表:

LeetCode 566. Reshape the Matrix

LeetCode 560. Subarray Sum Equals K

LeetCode 567. Permutation in String

LeetCode 568. Maximum Vacation Days