cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Maintaining an additional pointer to the
Maintaining an additional pointer to the first node in a doubly linked list
Nov 30, 2014 at 9:32am UTC
ritchson101
(27)
Why would it be cumbersome to maintain an additional pointer to the first node in a doubly linked list?
Nov 30, 2014 at 12:28pm UTC
MiiNiPaa
(8886)
It is not cumbersome at all. Most implementation of doubly linked lists maintain pointers to both head and tail nodes to provide fast accesss to begin/end iterators and allow easy fast insertion on both ends.
Topic archived. No new replies allowed.