give array integer num integer k return number unique kdiff pair arrayA kdiff pair integer pair numsi numsj follow true0 j numslengthi jnumsi numsj kNotice val denote absolute value val Example 1input num 31415 k 2output 2explanation there 2diff pair array 1 3 3 5although 1s input return number unique pairsExample 2input num 12345 k 1Output 4explanation there 1diff pair array 1 2 2 3 3 4 4 5example 3input num 13154 k 0output 1explanation there 0diff pair array 1 1 constraints1 numslength 104107 numsi 1070 k 107