Coder's Guild Mailing List

Re: Linked list

Posted by Ulli Conrad on 1999-04-26

On 25 Apr 99, Eugene wrote:

> how about circular linked list?

In a circular ll the next pointer of the last element points to the first 
element. And (if it's double linked) the prev pointer of the first 
element points to the last.
Advantage: You can start browsing the list at any point you like
Disadvantage: You need to keep a pointer to your start position to 
find out when you've browsed all list elements.

- Ulli -


===
The Coder's Knowledge Base
http://www.netalive.org/ckb