CHALLENGE: Word with the most number of vowels 💻⌨️🖱️ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 12

CHALLENGE: Word with the most number of vowels 💻⌨️🖱️

In a given string find the word with the most number of vowels (ignore the case sensitive). If is there more then one solution, present all. Example: Input: "I like challenges" Output: "challenges" Input: "I'm an excellent programmer" Output: "excellent","programmer" Input: "mhmm mhhhmm" Output: no word with vowels Any languages are welcome! https://code.sololearn.com/cI7FT9x6w0Mu/?ref=app

23rd Nov 2017, 4:11 PM
LukArToDo
LukArToDo - avatar
9 Answers
+ 9
Am I late?? 😥 But on the bright side, I did it 😇 https://code.sololearn.com/cyTg8ApagvIr/?ref=app
1st Dec 2017, 12:58 PM
Justine Ogaraku
Justine Ogaraku - avatar
+ 11
Interesting challenge! Here is my answer using Java. To make it simple, I've assumed that all words have at most 9 vowels. https://code.sololearn.com/cuY22V2Htu7U/?ref=app
24th Nov 2017, 7:19 PM
Vahid Shirbisheh
Vahid Shirbisheh - avatar
+ 9
https://code.sololearn.com/ccQDP1KYyHJ6/?ref=app
24th Nov 2017, 5:15 AM
Käzî Mrîdùl Høssäîn
Käzî Mrîdùl Høssäîn - avatar
23rd Nov 2017, 5:18 PM
David Akhihiero
David Akhihiero - avatar
+ 7
https://code.sololearn.com/cXjWi3vk9H3e/?ref=app
23rd Nov 2017, 5:24 PM
Вадим Сухотин (Vadim Sukhotin)
Вадим Сухотин (Vadim Sukhotin) - avatar
+ 6
sounds good...
23rd Nov 2017, 7:00 PM
SAKSHI
SAKSHI - avatar
+ 3
Okay, I think this is working. My try in JS: https://code.sololearn.com/WkWWuSYYJufW/?ref=app
28th Nov 2017, 11:40 AM
Lucho Greppi
Lucho Greppi - avatar
+ 2
I don't know if this will work for everything, but it should be fine https://code.sololearn.com/cwCFaHALM35p/?ref=app
28th Nov 2017, 4:26 AM
Faisal
Faisal - avatar
2nd Dec 2017, 12:54 AM
Riley Culligan
Riley Culligan - avatar