594. Longest Harmonious Subsequence
We define a harmonious array as an array where the difference between its maximum value and its minimum value is exactly
1.Given an integer array
nums, return the length of its longest harmonious subsequence among all its possible subsequences.
1 | class Solution { |