Count Vowels Permutation at MathWorks
Hard61.4% acceptance
This problem has 50.0% frequency at MathWorks.
Problem Description
Given an integer `n`, your task is to count how many strings of length `n` can be formed under the following rules: * Each character is a lower case vowel (`'a'`, `'e'`, `'i'`, `'o'`, `'u'`) * Each vowel `'a'` may only be followed by an `'e'`. * Each vowel `'e'` may only be followed by an `'a...
Read full problem and hintsTopics
More MathWorks Questions
Minimum Cost Tree From Leaf ValuesMediumBinary Tree CamerasHardShopping OffersMediumMinimum Edge Reversals So Every Node Is ReachableHardString TransformationHard
View all MathWorks questions