
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" |
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" |
1 |
class { |
近期评论