1456. Maximum Number of Vowels in a Substring of Given Length
Medium
Given a string s
and an integer k
, return the maximum number of vowel letters in any substring of s
with length k
.
Vowel letters in English are 'a'
, 'e'
, 'i'
, 'o'
, and 'u'
.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= s.length <= 10^5
s
consists of lowercase English letters.1 <= k <= s.length
解題
Previous1455. Check If a Word Occurs As a Prefix of Any Word in a SentenceNext1465. Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
Last updated