Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Latest commit

 

History

History

345

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

345. Reverse Vowels of a String

Write a function that takes a string as input and reverse only the vowels of a string.

Example 1:

Input: "hello"
Output: "holle"

Example 2:

Input: "leetcode"
Output: "leotcede"

Note:
The vowels does not include the letter "y".