Count Vowels Permutation

Given an integer n, you need to count the number of distinct vowel permutations of length n. Each vowel 'a', 'e', 'i', 'o', 'u' can follow certain rules:

  1. 'a' can only be followed by 'e'.
  2. 'e' ca...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: