Its OK to figure out murder mysteries, but you shouldn't need to figure out code. You should be able to read it. Steve McConnell

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.