You are given a string s and a positive integer k.
Let vowels denote the number of vowels in a substring, and let consonants denote the number of consonants in that substring.
Vowels are the characters 'a', 'e', 'i', 'o', and 'u'. All other English lowercase letters are consonants.
A substring is considered beautiful if:
vowels consonants
(vowels $ imes$ consonants) k
Return the total number of non empty beautiful substrings in s.
Constraints:
s.length
k
s consists of only English lowercase letters.
You are given a string s and a positive integer k.
Let vowels denote the number of vowels in a substring, and let consonants denote the number of consonants in that substring.
Vowels are the characters 'a', 'e', 'i', 'o', and 'u'. All other English lowercase letters are consonants.
A substring is considered beautiful if:
vowels consonants
(vowels $ imes$ consonants) k
Return the total number of non empty beautiful substrings in s.
Constraints:
s.length
k
s consists of only English lowercase letters.