Change Contents of the Bubble
View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Questions on Practice Final and Final-Spring08

On part V of the practice final exam, what part of the code makes the node1c's go away after the next step while the node3c's don't in the last step?
I have the same question. I don't see anything in the main method or the two repeat methods that say any nodes after the copies should be erased.

Would they still have disappeared had repeatNext() been called before repeatNextInserting()?

In Part II you write, node.setNext(head); head = node;
could you do this instead? setHead(node);

For the above, why do you need both lines for each option? Doesn't just the second line work on each option?



Link to this Page