When someone says, I want a programming language in which I need only say what I want done, give him a lollipop. Alan Perlis

Identical Linked Lists

Language Java | Level Intermediate | Category Data structure | September 6, 2015 12:03 am


Data structure Description

The singly linked list contains the sequence of nodes which each node contains data and link to the next node. Write a program to find identical nodes of given two linked lists. If both linked lists are identical, return true. Else return false.


Output

   					 

Print the first list items: 21->52->33->21->67->NULL
Print the second list items: 21->52->33->21->67->NULL
Validate identical list: true

Print the first list items: 21->52->33->21->67->NULL
Print the second list items: 56->87->63->91->69->NULL
Validate Identical list: false

				    

Comments


No comments available!

Please login to add comments.