< Back

Post Lab 18


Perform a full handtrace of the the following test program using your linked list code written in lab today. You should show the state of the list after EVERY operation.

>>> my_linked_list = LinkedList()
>>> my_linked_list.append("1")
>>> my_linked_list.append("2")
>>> my_linked_list.append("3")
>>> my_linked_list.append("4")
>>> my_linked_list.delete("2")
>>> my_linked_list.insert("-1", 2)


Please bring your handtraces on paper by the beginning of class on Friday, March 18th