Write the recursive function to list(A) that returns a python list containing the elements in A, in
the same order as they appear in A.
LLs started like this:
plt.close('all')
A1 = sll.List()
A2 = sll.List()
A2.extend([9,4,1,1,7,7,4,8,5])
A3 = sll.List()
A3.append(3)
A4 = sll.List()
A4.extend([9,4,1,1,7,7,4,8,5])
A5 = sll.List()
A5.extend([3,6,1,0])
Starter code:
|
identical(t):
#t should be an individual node. I assume a wrapper could be used here. In Python