[算法][LeetCode]Linked List Cycle & Linked List Cycle II——单链表中的环
摘要:题目要求Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?如何判断一个单链表中有环?Linked List Cycle IIGiven a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using ext
阅读全文
posted @ 2013-11-05 17:16