0809. Expressive Words
Description
**Input:** s = "heeellooo", words = ["hello", "hi", "helo"]
**Output:** 1
**Explanation:**
We can extend "e" and "o" in the word "hello" to get "heeellooo".
We can't extend "helo" to get "heeellooo" because the group "ll" is not size 3 or more.**Input:** s = "zzzzzyyyyy", words = ["zzyy","zy","zyy"]
**Output:** 3ac
Last updated