Maximum Number of Vowels in a Substring of Given Length
Medium · Arrays & Strings · about 10 minutes
Asked at Amazon, Microsoft, Google, Meta, Bloomberg.
Slide a window of length k across s. What is the greatest number of vowels (a, e, i, o, u) any one window position covers?