Search
⌘K

Leetcode 345. Reverse Vowels of a String

Reverse only the vowels in a string (a, e, i, o, u, case-insensitive), leaving consonants and other characters in their original positions. This is a string-manipulation/two-pointer style problem on inputs up to length 3×10^5.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Your account is free and you can post anonymously if you choose.