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

继续阅读

LeetCode Weekly Contest 32解题报告

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

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

题解列表:

LeetCode 581. Shortest Unsorted Continuous Subarray

LeetCode 582. Kill Process

LeetCode 583. Delete Operation for Two Strings

LeetCode 587. Erect the Fence

[LeetCode]Delete Operation for Two Strings

题目描述:

LeetCode 583. Delete Operation for Two Strings

Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one character in either string ...

继续阅读