Problem 2645 · Medium

Minimum Additions to Make Valid String

Walk the word while cycling through a, b, c, inserting each missing letter of the next abc block.

Open the interactive visualisation