Given an array of integers nums
and an integer k
, return the number of unique k-diff pairs in the array.
A k-diff pair is an integer pair (nums[i], nums[j])
, where both of the following are true:
This is a companion discussion topic for the original entry at https://algo.monster/problems/twitter_oa_k_difference/