Tap here to switch tabs
Problem
Submissions

Problem: Count the Number of Vowel Strings in Range

med
30 min
Try to solve the Count the Number of Vowel Strings in Range problem.

Statement

You are given a 00 indexed array of strings words and two integers left and right.

A string is defined as a vowel string if it starts with a vowel character and ends with a vowel character, where the vowel characters are 'a', 'e', 'i', 'o', and 'u'.

Return the count of vowel strings words[i] where i lies in the inclusive range [[left, right]].

Constraints:

  • 1≤1 \leq words.length ≤1000\leq 1000

  • 1≤1 \leq words[i].length ≤10\leq 10

  • words[i] consists of only lowercase English letters.

  • 0≤0 \leq left ≤\leq right << words.length

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Count the Number of Vowel Strings in Range

med
30 min
Try to solve the Count the Number of Vowel Strings in Range problem.

Statement

You are given a 00 indexed array of strings words and two integers left and right.

A string is defined as a vowel string if it starts with a vowel character and ends with a vowel character, where the vowel characters are 'a', 'e', 'i', 'o', and 'u'.

Return the count of vowel strings words[i] where i lies in the inclusive range [[left, right]].

Constraints:

  • 1≤1 \leq words.length ≤1000\leq 1000

  • 1≤1 \leq words[i].length ≤10\leq 10

  • words[i] consists of only lowercase English letters.

  • 0≤0 \leq left ≤\leq right << words.length