#1456 - Maximum Number of Vowels in a Substring of Given Length
Given a string s and an integer k, return the maximum number of vowel letters (a, e, i, o, u) in any substring of s with length k.
| Input | Output |
|---|---|
s = "abciiidef", k = 3 | 3 |
s = "aeiou", k = 2 | 2 |
s = "leetcode", k = 3 | 2 |