Problem 3330 · Easy

Find the Original Typed String I

Each adjacent repeated letter is a place where one extra key press could have been a mistake; the answer is one plus the number of such pairs.

Open the interactive visualisation