← ALL NOTES
String

1456. Maximum Number of Vowels in a Substring of Given Length

Find the maximum number of vowels in any length-k substring. Fixed window size → classic fixed-size sliding window: maintain the vowel count and update it O(1) per shift.

Loading…