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

Your linked list folder contains few codes , want to add "detect and remove loop in the linked list" problem ? #348

Open
Amit-yadav099 opened this issue Oct 13, 2024 · 2 comments
Assignees

Comments

@Amit-yadav099
Copy link

//this problem mainly improve the understanding of slow and pointers in the linked list which mainly used to detect loop in the linked list

Given the head of a linked list that may contain a loop. A loop means that the last node of the linked list is connected back to a node in the same list. The task is to Remove the loop from the linked list (if it exists).
eaxmple test case:-
input:1->2->3->4, pos = 1
this 'pos' tells to which position the end node is connceted in the given linked list, here 4 is connceted to 1 , which is at position 1.

output : 1->2->3->4
now there is no loops present in the linked list

@Amit-yadav099 Amit-yadav099 changed the title your liked list folder contains few codes , want to add "detect and remove loop in the linked list" problem ? Your linked list folder contains few codes , want to add "detect and remove loop in the linked list" problem ? Oct 13, 2024
@karanghuge01
Copy link

I want to add detect and remove loop in the linked list" problem. kindly assign this issue to me.

@panditakshay402
Copy link
Owner

@Amit-yadav099 Kindly follow all the rules from Readme.md to get PR accepted

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

3 participants