Problem 3412 · Medium

Find Mirror Score of a String

Pair each letter with the closest earlier unmarked letter of its mirror, scoring the distance between them.

Open the interactive visualisation