text of lowercase English letters. The vowels are a, e, i, o and u.
Count the non-empty substrings (runs of consecutive characters) that consist of vowels only and contain each of the five vowels at least once. Substrings that start or end at different positions are counted separately, even if their text is the same.text="queueioa" → 3
The vowel run after q is "ueueioa". Only pieces ending at the final a and starting at one of the first three letters u, e, u contain all five vowels: 3 substrings. Starting at the second e already loses the u.
text="education" → 0
The word has all five vowels, but consonants split them up, so no consonant-free piece holds them all. The answer is 0.
text="aeiouxuoiea" → 2
text consists of lowercase English letterstext="queueioa"
3
Run checks the first 3 tests in your browser. Submit checks all 112 tests on the server, hidden ones included.