Available question text
Count the number of unique unordered pairs (x, y) from the array whose absolute difference is k. Handle k>0 by checking distinct values x for which x+k exists, while k=0 requires counting values that appear at least twice.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 532. K-diff Pairs in an Array
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source