Given below an example of Singly linked list which contains loop
node_1 –> node_2 –> node_3 –> node_4 –> node_5 –> node_3
i want to detect whether loop exists or not for any given linked list by taking performance factor into consideration .
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1 Answer