Available question text
Count the number of contiguous substrings of s where the number of vowels equals the number of consonants and the product of those counts is divisible by k. The core challenge is combining the equality constraint on counts with a modular divisibility condition to count eligible substrings efficiently across up to n=1000 characters.
Related questions
Continue with questions that share topics or the same question type.
- Count Beautiful Substrings II
Coding
- Count Beautiful Numbers
Coding
- Count Beautiful Splits in an Array
Coding
- Count Binary Substrings
Coding · String · Two Pointers
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2947. Count Beautiful Substrings I
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source