Up to a point, it is better to just let the snags [bugs] be there than to spend such time in design that there are none. Alan M. Turing

Find middle element

Language Java | Level Intermediate | Category Data structure | September 4, 2015 8:32 pm


Data structure Description

Write a program to find middle element of singly linked list using single iteration. Linked list do not use an index and uses the only reference to next item.


Output

   					 

Linked List items: head->11->78->45->34->57->NULL
Length of Linked List: 5
Middle element of Linked List: 45

				    

Comments


No comments available!

Please login to add comments.