3305. Count of Substrings Containing Every Vowel and K Consonants I
You are given a string
word
and a non-negative integerk
.Return the total number of substrings of
word
that contain every vowel ('a'
,'e'
,'i'
,'o'
, and'u'
) at least once and exactlyk
consonants.
c++
1 | class Solution { |