摘要: 题目描述:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?解题方案:使用快慢指针,如果有环,快指针肯定会追上慢指针。下面是该题的代码... 阅读全文
posted @ 2014-10-14 23:00 skycore 阅读(147) 评论(0) 推荐(0) 编辑