+ 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
10 Antworten
+ 9
Am I late?? 😥 But on the bright side, I did it 😇
https://code.sololearn.com/cyTg8ApagvIr/?ref=app
+ 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
+ 9
https://code.sololearn.com/ccQDP1KYyHJ6/?ref=app
+ 7
https://code.sololearn.com/cXjWi3vk9H3e/?ref=app
+ 6
sounds good...
+ 3
Okay, I think this is working. My try in JS:
https://code.sololearn.com/WkWWuSYYJufW/?ref=app
+ 2
I don't know if this will work for everything, but it should be fine
https://code.sololearn.com/cwCFaHALM35p/?ref=app
+ 1
Here's mine in Python
https://code.sololearn.com/c06WFKz7Q0CS