30:00
Given the head of a linked list, return the node where the cycle begins. If there is no cycle, return null.
The number of nodes is in the range [0,104][0, 10^4][0,104].
−105≤Node.val≤105-10^5 \leq \text{Node.val} \leq 10^5−105≤Node.val≤105
pos\text{pos}pos is −1-1−1 or a valid index in the linked list.
Find cycle start. List has cycle at index 1
Phase 1: Detect
Phase 2: Find Start
S
F
0
1
2
3
↩ to [1]