# 归档 2017年7月

## LeetCode Weekly Contest 43解题报告 作者是 在线疯狂 发布于 2017年7月30日 在 LeetCode.

LeetCode Weekly Contest 43是LeetCode举办的第四十八场正式周赛，共4道题目，比赛时长1.5小时。

LeetCode 652. Find Duplicate Subtrees

LeetCode 650. 2 Keys Keyboard

LeetCode 649. Dota2 Senate

LeetCode 651. 4 Keys Keyboard

## 题目描述：

LeetCode 651. 4 Keys Keyboard

Imagine you have a special keyboard with the following keys:

`Key 1: (A)`: Prints one 'A' on screen.

`Key 2: (Ctrl-A)`: Select the whole screen.

`Key 3: (Ctrl-C)`: Copy selection to buffer.

`Key 4 ...`

## 题目描述：

LeetCode 649. Dota2 Senate

In the world of Dota2, there are two parties: the `Radiant` and the `Dire`.

The Dota2 senate consists of senators coming from two parties. Now the senate wants to make a decision about a change ...

## 题目描述：

LeetCode 650. 2 Keys Keyboard

Initially on a notepad only one character 'A' is present. You can perform two operations on this notepad for each step:

1. `Copy All`: You can copy all the characters present on the notepad (partial ...

## 题目描述：

LeetCode 652. Find Duplicate Subtrees

Given a binary tree, return all duplicate subtrees. For each kind of duplicate subtrees, you only need to return the root node of any one of them.

Two trees are duplicate if they have ...