首页 > 其他 > 详细

345. Reverse Vowels of a String(交换元音字母)(leetcode)

时间:2019-02-22 15:09:21      阅读:154      评论:0      收藏:0      [点我收藏+]

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".

技术分享图片

 

345. Reverse Vowels of a String(交换元音字母)(leetcode)

原文:https://www.cnblogs.com/shaer/p/10418420.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!