摘要: 题目:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?思路:正常的遍历,使用HashSet来判断是否重复代码: public ... 阅读全文
posted @ 2015-09-17 10:46 savageclc26 阅读(104) 评论(0) 推荐(0) 编辑