Has Vowels
Asked at MathWorks · Coding Questions · Difficulty: Easy
Given a string array that contains **n** elements, each composed of lowercase English letters, and **q** queries, each query of the format `i-r`, for each query, determine how many strings starting from index **i** and ending at index **r** have vowels as the first and last character. Vowels are in `{a, e, i, o, u}`.
Loading the problem…