Problem 3305 · Medium

Count of Substrings Containing Every Vowel and K Consonants I

From each start, extend the substring while consonants stay at most k, counting ends where all five vowels appear and consonants equal k.

Open the interactive visualisation