Leetcode 3541. Find Most Frequent Vowel and Consonant
Count letter frequencies in the string, separately track vowels (a,e,i,o,u) and consonants, then return the sum of the maximum vowel frequency and the maximum consonant frequency (use 0 if one class is absent). This is essentially a frequency-counting problem over a small fixed alphabet (s.length ≤ 100).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Your account is free and you can post anonymously if you choose.