Vowels and consonants
Statement
Goal
You are given a string as input, output the vowels followed by the consonants, in the order in which they appear and in lower case, then the number of vowels followed by the number of consonants, separated by a space. Special characters should be ignored.- Reminder -
Vowels :
Consonants :
Input
A single line: The string stc to be processed.
Output
A line composed of : s the result of the transformation of stc, the number of vowels v and the number of consonants c.
Format: s v c.
If there are no letter in stc, printempty instead.
Format: s v c.
If there are no letter in stc, print
Constraints
1 <= stc length <= 50
Example
Input
hello
Output
eohll 2 3
Game modes
Fastest, Shortest, Reverse
Test cases
Single word Test
Input
hello
Output
eohll 2 3
Single word Validator
Input
bonjour
Output
ooubnjr 3 4
Sentence Test
Input
i love codingame
Output
ioeoiaelvcdngm 7 7
Sentence Validator
Input
i mean really
Output
ieaeaymnrll 6 5
Upper case Test
Input
cOdINGisAlLmYLiFE
Output
oiiayiecdngsllmlf 7 10
Upper case Validator
Input
COdingISnoTAllmYliFE
Output
oiioayiecdngsntllmlf 8 12
Special characters Test
Input
#(c0d30rn0tc0d3that1sth3qu3st10n!)#
Output
aucdrntcdthtsthqstn 2 17
Special characters Validator
Input
1234qwerty3!?hey<>,%^
Output
eyeyqwrth 4 5
All together Test
Input
1f Y0u ch3CK 1T w3lL G_G !
Output
yufchcktwllgg 2 11
All together Validator
Input
4fgTY78!:;?opu$ $ Az "hey" YO !P4L! |
Output
youaeyyofgtpzhpl 8 8
Nothing left Test
Input
$%!]!/ 1234567890 <>? =+)_([
Output
empty
Nothing left Validator
Input
$%!]!/& 987654321% =+)))_([
Output
empty
Solution language
Solution
Stub generator input