Find middle node/element of a LinkedList in Java using length of a linked list.

Write a program to find/print middle element of a Linked list in Java using length of a linked list


1)      Find the length of linked list.

2)      Print the middle of a linked list at (length/2) th node/element.



Posted in data-structures and tagged , , .

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">