Tap here to switch tabs
Problem
Submissions

Problem: Count Sorted Vowel Strings

med
30 min
Try to solve the Count Sorted Vowel Strings problem.

Statement

Given an integer n, return the total number of strings of length n that consist exclusively of vowels (a, e, i, o, u) and are lexicographically sorted.

A string is considered lexicographically sorted if every character is alphabetically smaller than or equal to the character that follows it.

Constraints:

  • 1≤1 \leq n ≤50\leq 50

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Count Sorted Vowel Strings

med
30 min
Try to solve the Count Sorted Vowel Strings problem.

Statement

Given an integer n, return the total number of strings of length n that consist exclusively of vowels (a, e, i, o, u) and are lexicographically sorted.

A string is considered lexicographically sorted if every character is alphabetically smaller than or equal to the character that follows it.

Constraints:

  • 1≤1 \leq n ≤50\leq 50