How to remove vowels from a string and we should not remove any vowels if they are occurring continuously | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to remove vowels from a string and we should not remove any vowels if they are occurring continuously

Example: 1 -> Cat ===> Ct ==> here a is a vowel and does not have any continuous vowels so it is removed 2 -> Heet ==> Heet ==> hear e vowel but it is repeated twice so it should return without removing any letter

21st Oct 2021, 12:59 PM
uday kumar A B
uday kumar A B - avatar
3 Answers
+ 6
If you find a vowel, automatically check the next character to see if it's a vowel. If it is, check the next character. If not, delete the character.
21st Oct 2021, 1:05 PM
Slick
Slick - avatar
+ 1
uday kumar A B this will depends on your programmig language. Which programming language u want to use?
21st Oct 2021, 2:38 PM
Fꫀⲅძ᥆͟ᥙ᥉᯽
Fꫀⲅძ᥆͟ᥙ᥉᯽ - avatar