#3306
Count of Substrings Containing Every Vowel and K Consonants II
expert · 1015 · lc medium +32 · 40.6% accepted · 992 likes · top 20%
Description
You are given string word and non-negative integer k. Return the total number of substrings of word that contain every vowel ('a', 'e', 'i', 'o', 'u') at least once and contain exactly k consonants.
Code
1
2
3