hacktoberfest
仓库指标
- 星标
- (87 个星标)
- PR 合并指标
- (PR 指标待抓取)
描述
Floyd's cycle detection algorithm
Floyd's cycle-finding algorithm is a pointer algorithm that uses only two pointers, which move through the sequence at different speeds. It is also called the "tortoise and the hare algorithm", alluding to Aesop's fable of The Tortoise and the Hare.