NeetCode #90LC-2559MediumArrays & Hashing
← Back to All Problems#90 · #2559 · Count Vowel Strings in Ranges(统计范围内的元音字符串数)
📌 Problem Statement & Constraints
You are given an array of strings
words and an array of queries, each queries[i] = [l, r]. A string is a vowel string if it starts and ends with a vowel. For each query, return the number of vowel strings in words[l..r] inclusive. Constraints: 1 <= words.length <= 10^5, 1 <= queries.length <= 10^5.🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!