I am unable to understand the question "2006.Count Number of Pairs With Absolute Difference K"

Can sombody help me with the explaination using the HashMap or HashTables or Dictionary ?

https://leetcode.com/problems/count-number-of-pairs-with-absolute-difference-k/

Comments (0)