The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague. Edsger Dijkstra

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.