Daily challenge for 2026-05-27
512. Alternating Vowel Consonant Count
Given a string s consisting of lowercase English letters, return the number of times a vowel is immediately followed by a consonant.
Vowels are 'a', 'e', 'i', 'o', 'u'.
Example:Input: s = "abacus"Output: 3
Explanation: 'a' is followed by 'b', 'a' is followed by 'c', and 'u' is followed by 's'.
Run this challenge interactively in Python or JavaScript when the app loads.