How to Count the Distinct Pairs using HashMap? August 20, 2019 algorithms, c / c++, data structure No Comments Given an array of integers and a target value, find the number of distinct pairs that sum to the target. The pairs (x,y) and (x’, y’) where x smaller … [Continue Reading...]