Skip to content

Commit 00cb435

Browse files
refactor 594
1 parent 96bf66e commit 00cb435

File tree

1 file changed

+0
-15
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-15
lines changed

src/main/java/com/fishercoder/solutions/_594.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,6 @@
33
import java.util.HashMap;
44
import java.util.Map;
55

6-
/**
7-
* 594. Longest Harmonious Subsequence
8-
*
9-
* We define a harmonious array is an array where the difference between its maximum value and its minimum value is exactly 1.
10-
11-
Now, given an integer array, you need to find the length of its longest harmonious subsequence among all its possible subsequences.
12-
13-
Example 1:
14-
Input: [1,3,2,2,5,2,3,7]
15-
Output: 5
16-
17-
Explanation: The longest harmonious subsequence is [3,2,2,2,3].
18-
Note: The length of the input array will not exceed 20,000.
19-
20-
*/
216
public class _594 {
227
public static class Solution1 {
238
public int findLHS(int[] nums) {

0 commit comments

Comments
 (0)