摘要: 题目描述: 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:Gi 阅读全文
posted @ 2016-07-28 23:35 scottwang 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 题目描述: Given a linked list, determine if it has a cycle in it. 解题思路: 快的指针和慢的指针 代码如下: 阅读全文
posted @ 2016-07-28 00:47 scottwang 阅读(277) 评论(0) 推荐(0) 编辑