Alice is typing a string on her keyboard. During typing, she may hold down a key for too long, causing a character to be typed multiple times consecutively.
You are given a string word representing the final text displayed on the screen, and an integer k.
For every consecutive group of identical characters in word, Alice originally intended to type that character between
Return the total number of possible original strings Alice could have intended to type such that the length of the string is at least k. Since the answer may be large, return it modulo
Constraints:
word.length
word consists only of lowercase English letters.
k
Alice is typing a string on her keyboard. During typing, she may hold down a key for too long, causing a character to be typed multiple times consecutively.
You are given a string word representing the final text displayed on the screen, and an integer k.
For every consecutive group of identical characters in word, Alice originally intended to type that character between
Return the total number of possible original strings Alice could have intended to type such that the length of the string is at least k. Since the answer may be large, return it modulo
Constraints:
word.length
word consists only of lowercase English letters.
k