Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
1.31/5 (3 votes)
See more:
suppose some elemnts are there below
20,23,45,67.12
how can i find loop is exit or not
Posted
Comments
Sergey Alexandrovich Kryukov 2-Oct-14 1:14am    
I makes no sense at all.
—SA

 
Share this answer
 
The question makes no sense by the following reasons:

The example you show does not present any structure with relationship, so there is no a way to talk about a loop.
A linked list does not have loops.
Some consider the circular linked lists. Those, if not empty, always have exactly one loop, so there is nothing to find.

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900