+ 18

CHALLENGE: LONGEST SUBSTRING BETWEEN TWO VOWLES 💻⌨️🖱️

Find longest substring between two vowels in given string ignoring case sensitive and spaces between two words. If the result is more than one longest, represent all. Examples: Input: "substring" Output: "bstr" (4 consonants) Input: "Initial number" Output: "l n" (2 consonants) "mb" (2 consonants) All languages are welcome! https://code.sololearn.com/c6brvRImNkbd/?ref=app

6th Dec 2017, 7:23 AM
LukArToDo
LukArToDo - avatar
23 Respuestas
6th Dec 2017, 9:31 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 13
Mine is long, because I used Kazi concept for one of his codes, so this isn't my idea😑 but I added somethings to meet this challenge demands. I'm busy so I don't have time to write mine. Maybe I'll try later. But this code works. https://code.sololearn.com/cZi18zFgW0fr/?ref=app
6th Dec 2017, 10:16 AM
Justine Ogaraku
Justine Ogaraku - avatar
6th Dec 2017, 11:44 AM
David Akhihiero
David Akhihiero - avatar
+ 11
Here's my C# implementation! ✌ I've written a draft a night before this but found out there's an easier way to approach the problem. Thanks LukArToDo for the challenge! Enjoy~ ❤ https://code.sololearn.com/c4SjJ76kCc9A/?ref=app
7th Dec 2017, 5:34 AM
Zephyr Koo
Zephyr Koo - avatar
+ 10
@Zephyr Koo You're welcome 😊 Thank you for your answer. Your code is beautiful like always 🤓👏
7th Dec 2017, 5:37 AM
LukArToDo
LukArToDo - avatar
+ 9
@Marfik Em You did notice well 👍 Correct result is only the strings between two vowels.
7th Dec 2017, 3:42 PM
LukArToDo
LukArToDo - avatar
+ 7
@LukArToDo Glad to hear that! You're most welcome~ 😄
7th Dec 2017, 2:22 PM
Zephyr Koo
Zephyr Koo - avatar
+ 5
Interesting! I'll definitely attempt this later on. 😄
6th Dec 2017, 1:31 PM
Zephyr Koo
Zephyr Koo - avatar
8th Dec 2017, 3:16 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
6th Dec 2017, 9:41 AM
VcC
VcC - avatar
6th Dec 2017, 7:24 PM
Alex V. S.
+ 3
https://code.sololearn.com/c78fljvXMK4j/?ref=app
7th Dec 2017, 3:55 AM
Marfik Em
Marfik Em - avatar
7th Dec 2017, 11:41 AM
Вадим Сухотин (Vadim Sukhotin)
Вадим Сухотин (Vadim Sukhotin) - avatar
+ 3
I don't understand, the result of "ababbabbb" must be "bb" isn't?, because "bbb" isn't between vowels.
7th Dec 2017, 2:47 PM
Marfik Em
Marfik Em - avatar
+ 3
@Marfik Em But this thought never occurred to me. It is possible that after receiving an answer to this question, I will have to redo my program.
7th Dec 2017, 3:04 PM
Вадим Сухотин (Vadim Sukhotin)
Вадим Сухотин (Vadim Sukhotin) - avatar
+ 3
New version after the remark of the Marfik Em. https://code.sololearn.com/c2w5MRAwu8Zm/?ref=app
7th Dec 2017, 6:02 PM
Вадим Сухотин (Vadim Sukhotin)
Вадим Сухотин (Vadim Sukhotin) - avatar
+ 3
Non-functional (no lambda(s)) oneliner: HTTPS://code.sololearn.com/cfXP97Uho20s/?ref=app
7th Dec 2017, 6:11 PM
LunarCoffee
LunarCoffee - avatar
+ 3
Nice! My quick attempt in Ruby: https://code.sololearn.com/cLBC64gz9s9W/?ref=app Returns multiple substrings if there is a tie. Ignores spaces, but maintains formatting with spaces when showing results.
7th Dec 2017, 8:27 PM
André
André - avatar
6th Dec 2017, 9:00 AM
VcC
VcC - avatar
+ 2
It's easy. isn't?
6th Dec 2017, 4:26 PM
abdulazizumarovich
abdulazizumarovich - avatar