we define harmonious array array difference maximum value minimum value exactly 1given integer array num return length long harmonious subsequence possible subsequencesA subsequence array sequence derive array delete element change order remain element Example 1input num 13225237output 5explanation the long harmonious subsequence 32223example 2input num 1234output 2example 3input num 1111output 0 constraints1 numslength 2 104109 numsi 109