Problem 2957 · Medium

Remove Adjacent Almost-Equal Characters

Scan left to right; when a letter is almost equal to the one before it, change it and forget the old letter.

Open the interactive visualisation