6 kyu

Reverse Vowels In A String

1,329 of 2,002mmmaaatttttt

Description:

In this kata, your goal is to write a function which will reverse the vowels in a string. Any characters which are not vowels should remain in their original position. Here are some examples:

"Hello!" => "Holle!"
"Tomatoes" => "Temotaos"
"Reverse Vowels In A String" => "RivArsI Vewols en e Streng"

For simplicity, you can treat the letter y as a consonant, not a vowel.

Good luck!

Strings
Fundamentals

More By Author:

Check out these other kata created by mmmaaatttttt

Stats:

CreatedDec 23, 2016
PublishedDec 24, 2016
Warriors Trained3192
Total Skips45
Total Code Submissions6228
Total Times Completed2002
JavaScript Completions1329
CoffeeScript Completions10
Python Completions702
Total Stars74
% of votes with a positive feedback rating95% of 380
Total "Very Satisfied" Votes348
Total "Somewhat Satisfied" Votes27
Total "Not Satisfied" Votes5
Total Rank Assessments11
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • mmmaaatttttt Avatar
  • JohanWiltink Avatar
  • Voile Avatar
  • Madjosz Avatar
  • KenKamau Avatar
  • ejini战神 Avatar
  • user9599903 Avatar
  • farhanaditya Avatar
  • LosBlobbos Avatar
Ad