Available question text
Count pairs (i<j) of integers that can be made equal using at most two swaps of digits (each swap picks one number and swaps two digits within it), with leading zeros allowed. The core challenge is to determine when two digit-strings are within two internal-swap operations of each other and count such pairs efficiently for up to 5000 numbers.
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 3267. Count Almost Equal Pairs II
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source