human
Identical Linked Lists | A recursive Python3 function to check if two linked lists are identical or not.
If both lists are empty.
If both lists are not empty , then data of current nodes must match , and same should be recursively true for rest of the nodes ..
If we reach here , then one of the lists is empty and other is not"
Solution in Python:
 ... Write me a code to identical Linked Lists and the other steps required?
assistant
#Here is code to identical Linked Lists and the other steps required.
 def areIdentical ( a , b ) :
	if ( a == None and b == None ) :
		return True
	if ( a != None and b != None ) :
		return ( ( a . data == b . data ) and areIdentical ( a . next , b . next ) )
	return False