How many words of length n have at most k consecutive vowels?
Our alphabet has 21 consonants and 5 vowels.
Please forgive me for not providing test cases. I don't have a test case because this was a phone interview problem given to a friend.
I am working on this problem from morning your little help be life saving for me. I know problem statement is vague but if you can provide some hint on this dynamic programming pattern.
I found that since it is counting problem we can do something like this dp[i][j] = length of word i with j consecutive vowel . I don't know how to proceed further .Please help in making recurrence!