Leetcode 1220. Count Vowels Permutation
Count the number of length-n vowel strings that correspond to walks of length nā1 in a fixed directed graph of 5 states given by the follow-rules, returning the result modulo 10^9+7. This is a 5-state linear recurrence counting walks (solvable with simple DP or matrix exponentiation).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.