Problem 893 · Medium

Groups of Special-Equivalent Strings

Count groups of strings where swapping characters at equal-parity positions can make them match. The visual sorts each string's even-position and odd-position letters to form a shared key.

Open the interactive visualisation