Problem 532 · Medium

K-Diff Pairs in Array

Count the number of unique k-diff pairs in an array.

Open the interactive visualisation