|
Post by 1.8T on Feb 18, 2002 23:25:19 GMT -5
confused here, so the twoendedlinked list is a restricted list where u can only do things to the front and end., but they want us to make it so we can do things to the whole list including the middle items right?., that's wut they mean by a particular index correct? ?
|
|
|
Post by Brutal_Chicken on Feb 19, 2002 14:12:16 GMT -5
Yep.
|
|
|
Post by Sylph on Feb 22, 2002 18:38:13 GMT -5
do we assume the general list will only have Nodes as items?
|
|
|
Post by Bahamut on Feb 23, 2002 1:32:45 GMT -5
You can assume your general list is made up of linked Nodes. Remember, TELL uses Node.
|
|
|
Post by Observer on Feb 23, 2002 1:45:41 GMT -5
I'm currently working on doing the insert /remove methods for the TwoEndedLinkedList and I was wondering about index. They say that we should make methods to insert/remove from a particular index. Well, when we're doing linked lists and someone types in a particular index, does it work in the same way as vectors so the head would be the 0th one, or would it be the 1st one?
E.g. I want to insert something so that it is 3rd in the list. Does that mean that it will come after the 1st (vector/array way) or after the 2nd (conventional thinking).
|
|
|
Post by Bahamut on Feb 23, 2002 2:41:40 GMT -5
>>>, does it work in the same way as vectors so the head would be the 0th one<<<
That's correct.
|
|