Correctness is clearly the prime quality. If a system does not do what it is supposed to do, then everything else about it matters little. Bertrand Meyer

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.