Skip to content

#345 - Reverse Vowels of a String

EasyArray / String
Open on LeetCode

Given a string s, reverse only the vowels in the string and return it. The vowels are a, e, i, o, u (both lowercase and uppercase).

InputOutput
s = "hello""holle"
s = "leetcode""leotcede"

Released under the MIT License.