
Desicription
Write a function that takes a string as input and reverse only the vowels of a string.
Example 1:
1 |
Input: "hello" |
Example 2:
1 |
Input: "leetcode" |
Note:
The vowels does not include the letter “y”.
Solution
1 |
class { |

Write a function that takes a string as input and reverse only the vowels of a string.
Example 1:
1 |
Input: "hello" |
Example 2:
1 |
Input: "leetcode" |
Note:
The vowels does not include the letter “y”.
1 |
class { |
近期评论