Has Vowels
Problem Overview
- Given lowercase strings and range queries "i-r", count in each range how many strings start and end with a vowel (a,e,i,o,u).
- Input: strArr of n strings and q query strings; Output: an integer array with counts per query, in order.
- Constraints: 1 ≤ n,q ≤ 100000; 1 ≤ i ≤ r ≤ n; each string length ≤ 10.
- Domain: text processing/range counting, common coding interview problem.
- Source: Asked in Mathworks interviews; classic interview question.
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Input Variables
Execution Result:
