+ 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
23 odpowiedzi
+ 13
+ 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
+ 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
+ 10
@Zephyr Koo
You're welcome 😊
Thank you for your answer.
Your code is beautiful like always 🤓👏
+ 9
@Marfik Em
You did notice well 👍
Correct result is only the strings between two vowels.
+ 7
@LukArToDo Glad to hear that! You're most welcome~ 😄
+ 5
Interesting! I'll definitely attempt this later on. 😄
+ 5
Here's mine
https://code.sololearn.com/WStRq8S4JUvy/?ref=app
+ 4
one line many results
https://code.sololearn.com/csD1TAnWz08P/?ref=app
+ 4
Here is my short code:
https://code.sololearn.com/cV31kvOb5zTS/
+ 3
https://code.sololearn.com/c78fljvXMK4j/?ref=app
+ 3
I don't understand, the result of "ababbabbb" must be "bb" isn't?, because "bbb" isn't between vowels.
+ 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.
+ 3
New version after the remark of the Marfik Em.
https://code.sololearn.com/c2w5MRAwu8Zm/?ref=app
+ 3
Non-functional (no lambda(s)) oneliner:
HTTPS://code.sololearn.com/cfXP97Uho20s/?ref=app
+ 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.
+ 2
+ 2
It's easy. isn't?