归档 2017年5月21日

LeetCode Weekly Contest 33解题报告

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

比赛链接:https://leetcode.com/contest/leetcode-weekly-contest-33/

题解列表:

LeetCode 594. Longest Harmonious Subsequence

LeetCode 593. Valid Square

LeetCode 592. Fraction Addition and Subtraction

LeetCode 588. Design In-Memory File System

[LeetCode]Design In-Memory File System

题目描述:

LeetCode 588. Design In-Memory File System

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]Fraction Addition and Subtraction

题目描述:

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]Longest Harmonious Subsequence

题目描述:

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 ...

继续阅读

昨天

明天

归档