142 Linked List Cycle II
142. Linked List Cycle II
1. Question
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull
.
Note:Do not modify the linked list.
Follow up: Can you solve it without using extra space?
2. Implementation
3. Time & Space Complexity
时间复杂度O(n), 空间复杂度O(1)
Last updated