id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

string_vowelCountArray


Given a string array "words", return an integer array whose elements are the number of vowels in each word. The vowels are A,E,I,O,U and their lowercase versions.


string_vowelCountArray(["Vowel", "Count"]) → [2, 2]
string_vowelCountArray(["COMPUTER", "science"]) → [3, 3]
string_vowelCountArray(["algorithm", "code"]) → [3, 2]

...Save, Compile, Run (ctrl-enter)

public int[] string_vowelCountArray(String[] words) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Post-solution available

Copyright Nick Parlante 2017 - privacy