Given an array of strings `vowelStrings`, write a function to determine the total count of vowels in each string and return the array of vowel counts.
Explanation: Step-by-step: 1. Iterate over each string in the input array. 2. For each string, iterate over each character. 3. Check if the character is a vowel (a, e, i, o, u). 4. If the character is a vowel, increment the vowel count for that string. 5. After iterating over all characters in the string, add the vowel count to the output array.
Explanation: Step-by-step: 1. Iterate over each string in the input array. 2. For each string, iterate over each character. 3. Check if the character is a vowel (a, e, i, o, u). 4. If the character is a vowel, increment the vowel count for that string. 5. After iterating over all characters in the string, add the vowel count to the output array.
Analyze constraints and compute optimal solutions step-by-step.
No dry run loaded.
🚀 Practice this problem
Run code, get AI hints & track streak