You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem 17: Selective Phoneme Inversion (Reverse Vowels of a String)
Problem Statement
Given a string s, reverse only all the vowels in the string and return it.
The vowels are 'a', 'e', 'i', 'o', and 'u', and they can appear in both cases.
Input Format
A string s.
Example
Input: s = "hello" Output: "holle"
Input: s = "leetcode" Output: "leotcede"
Vowels in "leetcode" are e, e, o, e. Reversing them: e, o, e, e.