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

Exam 2 Review Fall2007:Draw the Object Structures

Post your questions here.
Back to Exam Review 2

Is A supposed to be: root->two->three->three->three->one->one->one->one->null ? What does the "last()" in two.last().repeatNext(three,3) do? Thanks so much.

Does branch2 not show up in our answer because it is never linked to the root? root.addREMOVEDld(branch2); doesn't seem to be included in the file.

I have the same question: What does the "last()" in two.last().repeatNext(three,3) do? Thanks.

Error: this should not happenIt's One, Two, Three, Three, Three, One

1) root, One, One, One, One
2) root, Two, One, One, One, One,
3) root, Two, Three, Three, Three, (When you do Two.last().repeat(three,3) it gets rid of everything after Three, the method that does not get rid of the rest is repeatNextInserting()


isn't A root->two->one->one->one->one->three->three->three->null??

Link to this Page