Two Pointers
345. Reverse Vowels of a String
Reverse only the vowels in a string, leaving every other character exactly where it is. This is a two-pointer problem in disguise: instead of reversing the whole string, you reverse a sub-sequence…
Loading…