![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
安静coding
这个作者很懒,什么都没留下…
展开
-
元音字母的字符串反转
**题目:**Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Given s = “hello”, return “holle”.Example 2: Given s = “leetcode”, return “leotcede”.分析:元音字母有原创 2016-08-15 17:50:05 · 676 阅读 · 0 评论 -
Reverse String 字符串反转
题目: Write a function that takes a string as input and returns the string reversed.Example: Given s = “hello”, return “olleh”.分析: 经典字符串反转问题,有n种解法,考虑到时间复杂度最低,还是采用两头往中间凑的方法实现。 Code: public class Solutio原创 2016-08-15 18:00:56 · 655 阅读 · 0 评论