Programming assignment Module 1 -- DoublyLinkedList Bug

link_nodes() has the bugs in it ( check for None and make sure that the two nodes are not identical) , but not obvious what the semantics of this function are …Is it supposed to not lose nodes from the list? if node1 was added later to the list, is it ok for th function to NOP the call?

I am having hardship understanding the issue from your post, but do ask also the LLM about the this point as well. There is probably something with your implementation.

The specification of link_nodes() is vague. Besides fixing the obvious bugs, the specifications have to be discovered through trial and error of running the unit tests.. I did that and was able to get the tests to pass and submitted the assignment. IMO the lab should try to clarify the specs of link_nodes(). Thanks for your response.

1 Like