← All problemsSign in

Only Vowels

Natasha loves vowels more than consonants . She has a string S which comprises of lower English alphabets. She doesnot like the string as it contains both vowels and consonants. So she decides to transform the string such that the final string contains only vowels. She can choose at most two sub-string and delete them in such a way that the final string contains only vowels.Natasha wants to know t

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start