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.
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.