How to Find the K-diff Pairs in an Array with Two Pointer or Hash Map? July 27, 2019 algorithms, brute force, c / c++, data structure No Comments Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined as … [Continue Reading...]