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 hints

Topics


More MathWorks Questions

View all MathWorks questions