#3305
Count of Substrings Containing Every Vowel and K Consonants I
specialist · 995 · lc medium +32 · 41.7% accepted · 142 likes · top 22%
Description
You are given string word and non-negative integer k. Return the total number of substrings containing all five vowels ('a', 'e', 'i', 'o', 'u') at least once and having exactly k consonants.
Code
1
2
3