Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Borland Delphi > Middle pointer ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 3659 of 3852
Post > Topic >>

Middle pointer for double linked list.

by "Skybuck Flying" <spam@[EMAIL PROTECTED] > Mar 27, 2008 at 04:23 AM

Hello,

Little idea:

Keep track of a middle pointer for a double linked list.

Each time two nodes are added on the same side move the middle pointer 
accordingly.

Do the same vice versa for removing twice from the same side.

Only problem is when removing nodes twice from the same side for uneven 
sides, when only two nodes are left the middle pointer would not be
updated 
and would keep pointing to a non existing node.

Bye,
  Skybuck.
 




 4 Posts in Topic:
Middle pointer for double linked list.
"Skybuck Flying"  2008-03-27 04:23:08 
Re: Middle pointer for double linked list.
"Maarten Wiltink&quo  2008-03-27 09:43:36 
Re: Middle pointer for double linked list.
"Skybuck Flying"  2008-03-27 10:34:20 
Re: Middle pointer for double linked list.
Ivan Levashew <octagra  2008-03-27 19:55:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 0:06:04 CDT 2008.