Problem 1957 · Easy

Delete Characters to Make Fancy String

Delete the fewest characters so that no three adjacent characters are equal. The visual shortens each run longer than two and strikes through the characters removed.

Open the interactive visualisation