Detect whether a linked list has a cycle and return the node where it starts — and explain why the method works.
Detect whether a linked list has a cycle and return the node where it starts — and explain why the method works.
Opens with the full question.