This is a verified interview question from Schlumbergera. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "Remove Single Vowels - Schlumbergera Online Assessment IIT BHU" covers key patterns like Arrays.
"Pattern : 2 DSA + MCQS Given a string `s`, remove a vowel if it occurs **individually**, i.e. it does not have another vowel immediately adjacent to it. If **two or more vowels occur consecutively**, leave all those vowels unchanged. Return the resulting string. A vowel is one of: ```text a, e, i, o, u ``` ### Example 1 ```text Input: s = "abecid" ``` Here: * `e` is a single vowel → remove * `i` is a single vowel → remove ```text Output: "abcd" ``` ### Example 2 ```text Input: s = "beautiful" ``` If vowels occur consecutively, they should be preserved. ```text Input: "ae b c ou" ``` The consecutive vowel groups `ae` and `ou` remain unchanged, while isolated vowels are removed. ### Example 3 ```text Input: s = "cat" ``` `a` is a single vowel, so: ```text Output: "ct" ``` ### Constraints ```text 1 ≤ |s| ≤ 10^5 ``` ---"
Join thousands of developers practicing for Schlumbergera.