# 归档 2017年5月

## 题目描述：

LeetCode 572. Subtree of Another Tree

Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. A subtree of s is a tree consists ...

## 题目描述：

LeetCode 575. Distribute Candies

Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one candy of the corresponding kind. You need to distribute these candies equally in ...

## 题目描述：

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 ...```

## fail2ban变更iptables封禁策略为DROP 作者是 在线疯狂 发布于 2017年5月5日 在 他山之石.

fail2ban的默认iptables封禁策略为 REJECT --reject-with icmp-port-unreachable

```[Init]
blocktype = DROP```

## 题目描述：

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 ...`