If debugging is the process of removing bugs, then programming must be the process of putting them in. Edsger W. Dijkstra

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.