Problem 3267 · Hard

Count Almost Equal Pairs II

Count index pairs whose numbers become equal after at most two digit swaps in one of them, with leading zeros allowed.

Open the interactive visualisation