re: Daily Challenge #3 - Vowel Counter VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Ruby Long Solution (my first solution) def getVowelCount(str) vowels = ["a", "e", "i", "o", "u"] count = 0 str.downcase.split('').each do...
 

It would be interesting to know if str.count("aeiouAEIOU") was faster, or if reordering the letters to try to get the most likely match first was better – e.g. str.count("eiaouEIAOU")

code of conduct - report abuse