摘要: Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?使用快慢指针,如果有循环两指针必定能相遇: 1 p... 阅读全文
posted @ 2014-10-08 02:14 metalx 阅读(374) 评论(0) 推荐(0) 编辑