map/count_pairs_with_diff library

Functions

countPairsWithDiff(List<int> nums, int diff) int
Counts the number of unique pairs with a specific difference in a list.