문제
1641. Count Sorted Vowel Strings
Given an integer
n, return the number of strings of length n that consist only of vowels (a, e, i, o, u) and are lexicographically sorted.A string
s is lexicographically sorted if for all valid i, s[i] is the same as or comes before s[i+1] in the alphabet.Example 1:
Example 2:
Example 3:
Constraints:
1 <= n <= 50
풀이
은찬
효성
규칙이 찾아질 듯 말듯해서 포기안하려다 결국 답 봤습니다 디피 으으 어렵네여