Problem 345 · Easy

Reverse Vowels of a String

Two pointers from both ends: advance each pointer until it lands on a vowel, then swap.

Open the interactive visualisation