7 kyu

Find the vowels

378 of 19,557willjharmer

Description:

We want to know the index of the vowels in a given word, for example, there are two vowels in the word super (the second and fourth letters).

So given a string "super", we should return a list of [2, 4].

Some examples:
Mmmm  => []
Super => [2,4]
Apple => [1,5]
YoMama -> [1,2,4,6]

NOTES

  • Vowels in this context refers to: a e i o u y (including upper case)
  • This is indexed from [1..n] (not zero indexed!)
Fundamentals

More By Author:

Check out these other kata created by willjharmer

Stats:

CreatedDec 27, 2015
PublishedDec 28, 2015
Warriors Trained30045
Total Skips2633
Total Code Submissions83947
Total Times Completed19557
Haskell Completions378
Python Completions7564
Ruby Completions1155
Clojure Completions243
CoffeeScript Completions39
C++ Completions1922
JavaScript Completions7319
C# Completions744
COBOL Completions9
C Completions148
TypeScript Completions334
Java Completions54
Total Stars253
% of votes with a positive feedback rating89% of 2370
Total "Very Satisfied" Votes1919
Total "Somewhat Satisfied" Votes364
Total "Not Satisfied" Votes87
Ad
Contributors
  • willjharmer Avatar
  • GiacomoSorbi Avatar
  • lszcs Avatar
  • smile67 Avatar
  • Blind4Basics Avatar
  • Voile Avatar
  • Souzooka Avatar
  • hobovsky Avatar
  • trashy_incel Avatar
  • MikChan Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
  • Xanat0s Avatar
  • farhanaditya Avatar
Ad