# 归档 2017年7月

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

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

LeetCode 645. Set Mismatch

LeetCode 646. Maximum Length of Pair Chain

LeetCode 647. Palindromic Substrings

LeetCode 648. Replace Words

## 题目描述：

LeetCode 647. Palindromic Substrings

Given a string, your task is to count how many palindromic substrings in this string.

The substrings with different start indexes or end indexes are counted as different substrings even they consist of same characters ...

## 题目描述：

LeetCode 648. Replace Words

In English, we have a concept called `root`, which can be followed by some other words to form another longer word - let's call this word `successor`. For example, the root `an`, followed by `other`, which ...

## 题目描述：

LeetCode 646. Maximum Length of Pair Chain

You are given `n` pairs of numbers. In every pair, the first number is always smaller than the second number.

Now, we define a pair `(c, d)` can follow another pair `(a ...`

## 题目描述：

LeetCode 645. Set Mismatch

The set `S` originally contains numbers from 1 to `n`. But unfortunately, due to the data error, one of the numbers in the set got duplicated to another number in the set, which results in ...