Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detecting loops in linked lists #5

Open
humanshell opened this issue Dec 27, 2013 · 1 comment
Open

Detecting loops in linked lists #5

humanshell opened this issue Dec 27, 2013 · 1 comment

Comments

@humanshell
Copy link

I came across this really interesting article in my reader a while back and just got around to clearing it out of my Safari reading list:

http://coryg89.github.io/technical/2013/12/12/the-tortoise-and-the-hare-loops-in-linked-lists/

I thought the function might be a good candidate for inclusion in this library. If you agree, let me know and I'll create a pull request with the new function and a test for it.

@stephenmathieson
Copy link
Member

Wouldn't hurt but IMO, if you've got loops in your lists, you're probably doing something wrong.

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

No branches or pull requests

2 participants