# 归档 2017年4月9日

## LeetCode Weekly Contest 27解题报告 作者是 在线疯狂 发布于 2017年4月9日 在 LeetCode.

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

LeetCode 557. Reverse Words in a String III

LeetCode 554. Brick Wall

LeetCode 556. Next Greater Element III

LeetCode 549. Binary Tree Longest Consecutive Sequence II

## 题目描述：

LeetCode 549. Binary Tree Longest Consecutive Sequence II

Given a binary tree, you need to find the length of Longest Consecutive Path in Binary Tree.

Especially, this path can be either increasing or decreasing. For example, [1,2,3 ...

## 题目描述：

LeetCode 556. Next Greater Element III

Given a positive 32-bit integer n, you need to find the smallest 32-bit integer which has exactly the same digits existing in the integer n and is greater in value than n. If ...

## 题目描述：

LeetCode 554. Brick Wall

There is a brick wall in front of you. The wall is rectangular and has several rows of bricks. The bricks have the same height but different width. You want to draw a vertical line ...

## 题目描述：

LeetCode 557. Reverse Words in a String III

Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order.

Example 1:

`Input: "Let's take LeetCode ...`