String Patterns (Also for Core/Database Intern :)

Asked at Snowflake · Coding & Leetcode-style Questions · Difficulty: Medium

Given the length of a word ( `wordLen` ) and the maximum number of consecutive vowels that it can contain ( `maxVowels` ), determine how many unique words can be generated. Words will consist of English alphabetic letters a through z only. Vowels are a, e, i, o, u; consonants are the remaining 21 letters. In the explanations, v and c represent vowels and consonants.

Loading the problem…