Back to Questions

Reverse Vowels of a String

91K viewsAsked at Stripe
Easy

Question Explain

Given a string `s`, reverse only all the vowels in the string and return it. The vowels are 'a', 'e', 'i', 'o', and 'u'. Use the Two-Pointer technique.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question