Problem 3805 · Medium

Count Caesar Cipher Pairs

Two words are similar when one is a cyclic alphabet shift of the other. Describe each word by its letter gaps from its first letter, then count matching descriptions.

Open the interactive visualisation