LeetCode: https://leetcode.com/problems/linked-list-cycle/
Given head, determine if the linked list has a cycle in it.
Use fast and slow pointers (Floyd's cycle detection).
slow
fast
3
0
2
1
0
2
-4
3
cycleTo=1
Step 1 / 4
Step 1:
Initialize slow and fast at head. Tail points back to index 1.
Pointers: fast=0, slow=0
Focus: select @ [0]
cycleTo=1