Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning. Rick Cook

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.