Problem 3265 · Medium

Count Almost Equal Pairs I

Count index pairs whose numbers become equal after swapping two digits in at most one of them.

Open the interactive visualisation