Efficiently count unordered pairs whose absolute difference equals a target k.
Constraints
Example
```python >>> count_pairs_with_difference([1, 5, 3, 4, 2], 2) 3 >>> count_pairs_with_difference([1, 1, 1], 0) 3 >>> count_pairs_with_difference([], 5) 0 ```
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints