Program testing can be used to show the presence of bugs, but never to show their absence. Edsger 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.



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



No comments available!

Please login to add comments.