Problem 767 · Medium

Reorganize String

Fill even slots then odd slots with the most frequent letters so no two neighbours match.

Open the interactive visualisation