Skip to content

hare and tortoise algoritm of cycle detection in a linked list#1041

Open
Casperrules wants to merge 1 commit intotrekhleb:masterfrom
CenturianTech:algorithms/linked-list/hare-and-tortoise-algorithm
Open

hare and tortoise algoritm of cycle detection in a linked list#1041
Casperrules wants to merge 1 commit intotrekhleb:masterfrom
CenturianTech:algorithms/linked-list/hare-and-tortoise-algorithm

Conversation

@Casperrules
Copy link

Did not see the cycle detection algorithm on the list of algorithms for linked list and Floyd's Cycle detection algorithm is a very interesting and intuitive algorithm to do the same in O(1) space and O(n) time complexity so I added the hare-tortoise algorithm to the code. Hope it adds value to the repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant