Even the best planning is not so omniscient as to get it right the first time. Fred Brooks

Find Cyclic

Language Java | Level Intermediate | Category Data structure | September 5, 2015 10:08 pm


Data structure Description

Write a program to find if a linked list is circular has a cycle or ends. The function should take a head pointer as input and return true if the linked list contains cycle. If the linked list does not contain any cycle, it returns false.


Output

   					 

Insert items in Linked List: 9, 43, 34, 11, 78, 55
9->43->34->11->78->55->NULL
Does the listed list contain loop: false

				    

Comments


No comments available!

Please login to add comments.