Tap here to switch tabs
Problem
Submissions

Problem: Find Most Frequent Vowel and Consonant

med
30 min
Try to solve the Find Most Frequent Vowel and Consonant problem.

Statement

Given a string s consisting of lowercase English letters, find the sum of the maximum frequency of any vowel and the maximum frequency of any consonant in s.

If there are no vowels in s, the maximum vowel frequency is 00. Similarly, if there are no consonants in s, the maximum consonant frequency is 00.

Note: The vowels are 'a', 'e', 'i', 'o', and 'u'. All other lowercase English letters are consonants.

Constraints:

  • 1≤1 \leq s.length ≤100\leq 100

  • s consists of lowercase English letters only.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Find Most Frequent Vowel and Consonant

med
30 min
Try to solve the Find Most Frequent Vowel and Consonant problem.

Statement

Given a string s consisting of lowercase English letters, find the sum of the maximum frequency of any vowel and the maximum frequency of any consonant in s.

If there are no vowels in s, the maximum vowel frequency is 00. Similarly, if there are no consonants in s, the maximum consonant frequency is 00.

Note: The vowels are 'a', 'e', 'i', 'o', and 'u'. All other lowercase English letters are consonants.

Constraints:

  • 1≤1 \leq s.length ≤100\leq 100

  • s consists of lowercase English letters only.