| ||||||||||
If you had a list "F->G", and you said nodeF.weaveOneAndTwo("A","B",3), you would expect to get "F->A->B->B->A->B->B->A->B->B->G" A->B->B (a one A and a two B), three times, got inserted after F. Mark Guzdial |
You're right, Kyle. You don't have to save the oldNext "jazz." And this is harder than I can be expected to put on the final exam. Mark Guzdial |