Free written solution

Find the Original Typed String I (LeetCode 3330): Solution and Explanation

Alice held one key too long at most once, so one block of equal letters may be stretched. Given the screen text, count how many different strings she could have meant.

Read the intuition, approach, code and complexity →