Java icon indicating copy to clipboard operation
Java copied to clipboard

[BUG] <Suggestion: Improve LinkedList Loop Detection Algorithm - Create, Detect, Remove>

Open AdityaRokade17 opened this issue 1 year ago • 7 comments

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

Screenshot (9)

Additional context

No response

AdityaRokade17 avatar Oct 05 '23 20:10 AdityaRokade17

Hey could you assign this to me will be happy to contribute

aspiringgarv avatar Oct 06 '23 07:10 aspiringgarv

Yes I would like to work on this one as well. I am a good Algo Expert with a good leetcode and hackerrank ranking.

VishuKalier2003 avatar Oct 06 '23 09:10 VishuKalier2003

Can you assign me this issue.

rohit162 avatar Oct 06 '23 18:10 rohit162

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

LakshmiSowmya04 avatar Oct 09 '23 08:10 LakshmiSowmya04

can you assign this to me? if it is not solved I would be more happy to work on this

Sooraj-Mlahi avatar Oct 23 '23 19:10 Sooraj-Mlahi

I would like to work on this issue.

geek101-cy avatar Jan 09 '24 09:01 geek101-cy

@geek101-cy please let me know what the problem is and how it can be solved

siriak avatar Jan 09 '24 14:01 siriak

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!

github-actions[bot] avatar Feb 09 '24 00:02 github-actions[bot]

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!

github-actions[bot] avatar Feb 16 '24 00:02 github-actions[bot]