The belief that complex systems require armies of designers and programmers is wrong. A system that is not understood in its entirety, or at least to a significant degree of detail by a single individual, should probably not be built. Niklaus Wirth

Get Nth node in a Linked List

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


Data structure Description

Linked list contains the sequence of nodes connected through links. If the utility function is able to find the data, it returns true. Otherwise, it returns false.

Write a program to find N-th node from singly linked list using single iteration.


Output

   					 

Insert items in LinkedList:9, 43, 34, 11, 78, 55
9->43->34->11->78->55->NULL

3 rd Item from linked list using single iteration:34

				    

Comments


No comments available!

Please login to add comments.