7 kyu

Sort the Vowels!

1,864 of 4,120zruF

Description:

Sort the Vowels!

In this kata, we want to sort the vowels in a special format.

Task

Write a function which takes a input string s and return a string in the following way:

   
                  C|                          R|
                  |O                          n|
                  D|                          d|
   "CODEWARS" =>  |E       "Rnd Te5T"  =>      |
                  W|                          T|
                  |A                          |e
                  R|                          5|
                  S|                          T|

Notes:

  • List all the Vowels on the right side of |
  • List every character except Vowels on the left side of |
  • for the purpose of this kata, the vowels are : a e i o u
  • Return every character in its original case
  • Each line is seperated with \n
  • Invalid input ( undefined / null / integer ) should return an empty string
Fundamentals
Algorithms
Strings

Stats:

CreatedOct 16, 2017
PublishedOct 16, 2017
Warriors Trained6951
Total Skips123
Total Code Submissions15196
Total Times Completed4120
JavaScript Completions1864
Python Completions1856
Clojure Completions34
Julia Completions14
Ruby Completions86
TypeScript Completions125
C Completions58
C# Completions139
Go Completions86
Total Stars71
% of votes with a positive feedback rating92% of 626
Total "Very Satisfied" Votes542
Total "Somewhat Satisfied" Votes69
Total "Not Satisfied" Votes15
Total Rank Assessments12
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • zruF Avatar
  • Voile Avatar
  • a.kozhanov Avatar
  • hobovsky Avatar
  • ploppity Avatar
  • Lixfeld Avatar
  • stellartux Avatar
  • pawptart Avatar
  • trashy_incel Avatar
  • topping Avatar
  • suyundukov Avatar
Ad