档案日期2017的20

LeetCode Weekly Contest 33解题报告 作者是 在线疯狂 发布于 2017年5月21日 在 LeetCode.

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

LeetCode 594. Longest Harmonious Subsequence

LeetCode 593. Valid Square

LeetCode 592. Fraction Addition and Subtraction

题目描述：

Design an in-memory file system to simulate the following functions:

`ls`: Given a path in string format. If it is a file path, return a list that only contains this file's name. If ...

题目描述：

LeetCode 592. Fraction Addition and Subtraction

Given a string representing an expression of fraction addition and subtraction, you need to return the calculation result in string format. The final result should be irreducible fraction. If your final result is ...

题目描述：

LeetCode 593. Valid Square

Given the coordinates of four points in 2D space, return whether the four points could construct a square.

The coordinate (x,y) of a point is represented by an integer array with two integers.

Example ...

题目描述：

LeetCode 594. Longest Harmonious Subsequence

We define a harmonious array is an array where the difference between its maximum value and its minimum value is exactly 1.

Now, given an integer array, you need to find the length of ...