Maximum vowels in window

Write codeMedium18 min

Your task

Given a string s and integer k, return the maximum number of vowels (a, e, i, o, u) in any substring of length exactly k. If k > len(s) return 0. Constraints: 1 <= len(s) <= 10^5, 1 <= k, s is lowercase letters.

Examples

max_vowels_window(s: str, k: int) -> int
Example 1
Inputmax_vowels_window("abciiidef", 3)
Output3