Java
Java copied to clipboard
[BUG] <Suggestion: Improve LinkedList Loop Detection Algorithm - Create, Detect, Remove>
Description
I noticed that the current loop detection algorithm in the LinkedList class is not efficient for large lists. I would like to suggest an improvement to make it more optimized. Easiest Code for the ones who is new for a coding and very easy to understand. also added one more function if loop is detect it will remove loop and return.
Steps to reproduce
1.Create a linked list with a loop. 2.Run the loop detection algorithm. 3.Gives Error
Excepted behavior
I expected the loop detection algorithm to run efficiently and quickly identify the loop in the linked list and also need to have option to remove loop.
Screenshots
Additional context
No response
Hey could you assign this to me will be happy to contribute
Yes I would like to work on this one as well. I am a good Algo Expert with a good leetcode and hackerrank ranking.
Can you assign me this issue.
I would be glad if you assign me this issue ...i would like to work on this since i am good with algorithms and DS
can you assign this to me? if it is not solved I would be more happy to work on this
I would like to work on this issue.
@geek101-cy please let me know what the problem is and how it can be solved
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution!
Please reopen this issue once you have made the required changes. If you need help, feel free to ask in our Discord server or ping one of the maintainers here. Thank you for your contribution!