Problem 859 · Easy

Buddy Strings

Decide whether swapping exactly two letters in one string can produce the other. The visual lines up both strings and highlights the mismatched positions.

Open the interactive visualisation