Advertisement

More Linked Lists!

Started by June 05, 2000 06:25 AM
9 comments, last by Sponge99 24 years, 6 months ago
Remember that circularly linked lists need some way of telling the for loop that we have come full circle. Most of the time I usually use the value of the list->head pointer to know that I have traversed the whole list. If this does not work it is possible to implement a visited flag like one would implement in a graph traversal algorithm. The latter method does take more time in managing the flags though.

Kressilac


Derek Licciardi (Kressilac)Elysian Productions Inc.

This topic is closed to new replies.

Advertisement