Algo_ds_101: Check for a closed loop in linked lists

Created on 12 Oct 2020  路  15Comments  路  Source: ahampriyanshu/algo_ds_101

Submission Title
Check for closed loop using Floyd's cycle algorithm

Submission Type
Data Structure

Submission Description
Fastest algorithm to detect a closed loop in a linked list. We keep track of 2 pointers and traverse one a bit faster than the other. If these pointers meet again then there is a closed loop.

Submission Directory
algo_ds_101 => Data_Structures => LinkedList => detect_cycle.extension

Contributors

  • [x] C++ -
  • [ ] C -
  • [x] Python -
  • [ ] Java -
  • [ ] JavaScript -
  • [ ] TypeScript -
  • [ ] Golang -
  • [ ] Ruby -
  • [ ] php -
  • [ ] Swift -
  • [ ] C# -
Hacktoberfest New Submssion TypeScript first timer good first issue java javascript php scala swift

All 15 comments

馃憢 @${author}

Thanks for opening your first issue here! Be sure to follow the issue template!

Regards @ahampriyanshu :v:

Hi! Could you assign this issue to me in C++

Could you assign this issue to me in Python.

PLEASE Assign this to me i'm good at it

I want to work on this issue in java馃槉

Could you assign this issue to me in Java.

@ahampriyanshu can you assign this task to me for C# implementation?

Please assign me this for Ruby

Please assign me this for Golang

Could you assign this issue to me in Java.

Please opt a different language/issue.

Hi! I would like to work on this issue in Swift.

@dwij2212 @ahampriyanshu Can I suggest to include kotlin language in the list?
I will pretty happy to make the implementation.

please assign this to me in C

Hi, I want to solve this issue in java.

thanks everyone :v:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jindalsachin picture jindalsachin  路  5Comments

ahampriyanshu picture ahampriyanshu  路  4Comments

ahampriyanshu picture ahampriyanshu  路  5Comments

YashJain2 picture YashJain2  路  4Comments

ahampriyanshu picture ahampriyanshu  路  5Comments