# 档案日期2018的5

## LeetCode Weekly Contest 70解题报告 作者是 在线疯狂 发布于 2018年2月4日 在 LeetCode.

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

LeetCode 779. K-th Symbol in Grammar

LeetCode 776. Split BST

LeetCode 777. Swap Adjacent in LR String

LeetCode 778. Swim in Rising Water

## 题目描述：

LeetCode 778. Swim in Rising Water

On an N x N `grid`, each square `grid[i][j]` represents the elevation at that point `(i,j)`.

Now rain starts to fall. At time `t`, the depth of the water everywhere ...

## 题目描述：

LeetCode 777. Swap Adjacent in LR String

In a string composed of `'L'`, `'R'`, and `'X'` characters, like `"RXXLRXRXL"`, a move consists of either replacing one occurrence of `"XL"` with `"LX"`, or replacing one occurrence of `"RX"` with `"XR" ...`

## 题目描述：

LeetCode 776. Split BST

Given a Binary Search Tree (BST) with root node `root`, and a target value `V`, split the tree into two subtrees where one subtree has nodes that are all smaller or equal to the target value ...

## 题目描述：

LeetCode 779. K-th Symbol in Grammar

On the first row, we write a `0`. Now in every subsequent row, we look at the previous row and replace each occurrence of `0` with `01`, and each occurrence of `1` with ...