Detect cycle in a linked list (Floyd’s Cycle Detection Algorithm)
This post will detect cycles in a linked list using Floyd’s cycle detection algorithm, a pointer algorithm that uses only two pointers, which move through the sequence at different speeds.
Techie Delight